diff --git a/installer/costruisci.sh b/installer/costruisci.sh index 314292c..673014b 100755 --- a/installer/costruisci.sh +++ b/installer/costruisci.sh @@ -90,7 +90,7 @@ limite=$((100 * 1024 * 1024)) echo "== Risultato" for file in "$pubblicazione/Febe.exe" "$setup" "$zip_portabile"; do dimensione=$(stat -c %s "$file") - printf '%-48s %6.1f MB\n' "$(basename "$file")" "$(echo "$dimensione / 1048576" | bc -l)" + awk -v nome="$(basename "$file")" -v byte="$dimensione" 'BEGIN { printf "%-48s %6.1f MB\n", nome, byte / 1048576 }' if (( dimensione >= limite )); then echo "$(basename "$file") supera i 100 MB: Gitea non lo accetta come allegato." >&2 exit 1