From a551e2ccc0eefd933a3b9a914a2aad47f795e625 Mon Sep 17 00:00:00 2001 From: David de Kloet Date: Mon, 27 Nov 2023 09:41:30 +0100 Subject: [PATCH] Avoid using decimal comma on mahcines with different locale --- bin/dfx-sns-transfer-to-faucet | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bin/dfx-sns-transfer-to-faucet b/bin/dfx-sns-transfer-to-faucet index 12152533..5280b9a5 100755 --- a/bin/dfx-sns-transfer-to-faucet +++ b/bin/dfx-sns-transfer-to-faucet @@ -32,7 +32,7 @@ FEE_E8S="$(dfx canister call "$LEDGER_CANISTER_ID" icrc1_fee '(record from_e8s() { amount_e8s="$1" - amount="$(awk "BEGIN {printf \"%.8f\", $amount_e8s * 0.00000001}")" + amount="$(LC_NUMERIC="C" awk "BEGIN {printf \"%.8f\", $amount_e8s * 0.00000001}")" echo "$amount" }