Skip to content

Commit

Permalink
Update disk.sh
Browse files Browse the repository at this point in the history
  • Loading branch information
kroese authored Jun 13, 2024
1 parent a57b897 commit 94cb392
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/disk.sh
Original file line number Diff line number Diff line change
Expand Up @@ -458,7 +458,7 @@ addDisk () {

[ -z "$DISK_SPACE" ] && DISK_SPACE="16G"
DISK_SPACE=$(echo "${DISK_SPACE^^}" | sed 's/MB/M/g;s/GB/G/g;s/TB/T/g')
[[ -z ${DISK_SPACE//[0-9]} ]] && DISK_SPACE="${DISK_SPACE}G"
[[ -z "${DISK_SPACE//[0-9]}" ]] && DISK_SPACE="${DISK_SPACE}G"
DATA_SIZE=$(numfmt --from=iec "$DISK_SPACE")

if (( DATA_SIZE < 1 )); then
Expand Down

0 comments on commit 94cb392

Please sign in to comment.