Skip to content

Commit

Permalink
fixed locale problem
Browse files Browse the repository at this point in the history
  • Loading branch information
Besnn committed Nov 9, 2021
1 parent 5ea56c1 commit 054224e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions moco
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
#!/usr/bin/env bash
# syntax: moco <amount> <from> {<to>}

MOCO_DIR=/home/besnn/moco
MOCO_DIR=/home/besnn/_git/moco-cli

GREEN='\033[1;32m'
RED='\033[1;31m'
Expand Down Expand Up @@ -132,7 +132,7 @@ for ((i=0; i < length; i++))
do
echo -en "$GREEN$from_currency" "to" "$(echo -en ${to_currencies[$i]} | tr '[:lower:]' '[:upper:]')"
echo -en ": "$UNDERLINE
printf "%0.3f\n" $(echo "${rates[$i]} * $amount" | bc)
LC_NUMERIC="en_US.UTF-8" printf "%0.3f\n" $(echo "${rates[$i]} * $amount" | bc -l)
echo -en $RESET_COLOR
done

Expand Down

0 comments on commit 054224e

Please sign in to comment.