1
0
mirror of git://sourceware.org/git/lvm2.git synced 2025-01-03 05:18:29 +03:00

fsadm: fix bash artihmetic

These shell vars needs to be without "".
This commit is contained in:
Zdenek Kabelac 2020-10-25 21:44:36 +01:00
parent a12574303d
commit 50ac89448f

View File

@ -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
}