From 50ac89448fef4fc223e52f5a843b0709111006cb Mon Sep 17 00:00:00 2001 From: Zdenek Kabelac Date: Sun, 25 Oct 2020 21:44:36 +0100 Subject: [PATCH] fsadm: fix bash artihmetic These shell vars needs to be without "". --- scripts/fsadm.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/fsadm.sh b/scripts/fsadm.sh index e20401be1..9b95d318d 100755 --- a/scripts/fsadm.sh +++ b/scripts/fsadm.sh @@ -383,7 +383,7 @@ detect_device_size() { test -n "$DEVSIZE" || error "Cannot read size of device \"$VOLUME\"." SSSIZE=$("$BLOCKDEV" --getss "$VOLUME" || true) test -n "$SSSIZE" || error "Cannot read sector size of device \"$VOLUME\"." - DEVSIZE=$(("$DEVSIZE" * "$SSSIZE")) + DEVSIZE=$(( $DEVSIZE * $SSSIZE )) fi }