diff options
author | Linus Groh <mail@linusgroh.de> | 2022-05-07 18:13:01 +0200 |
---|---|---|
committer | Linus Groh <mail@linusgroh.de> | 2022-05-07 23:36:02 +0200 |
commit | fbc1448eab7a1ea681a57bebed6a6f0b3aa8a281 (patch) | |
tree | 27d24567156c92ac3f727a6ddb8a618c95bec710 /Meta | |
parent | b9f1c44dbb87bf47b6b7b0031d349eccc9f355d5 (diff) | |
download | serenity-fbc1448eab7a1ea681a57bebed6a6f0b3aa8a281.zip |
Meta: Fix shellcheck errors in build-image-qemu.sh
Diffstat (limited to 'Meta')
-rwxr-xr-x | Meta/build-image-qemu.sh | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/Meta/build-image-qemu.sh b/Meta/build-image-qemu.sh index ecc06eb4e7..1189e12dc4 100755 --- a/Meta/build-image-qemu.sh +++ b/Meta/build-image-qemu.sh @@ -110,9 +110,9 @@ fi if [ $USE_EXISTING -eq 1 ]; then OLD_DISK_SIZE_BYTES=$(wc -c < _disk_image) - if [ $DISK_SIZE_BYTES -gt "$OLD_DISK_SIZE_BYTES" ]; then + if [ "$DISK_SIZE_BYTES" -gt "$OLD_DISK_SIZE_BYTES" ]; then echo "resizing disk image..." - qemu-img resize -f raw _disk_image $DISK_SIZE_BYTES || die "could not resize disk image" + qemu-img resize -f raw _disk_image "$DISK_SIZE_BYTES" || die "could not resize disk image" if ! resize2fs _disk_image; then rm -f _disk_image USE_EXISTING=0 @@ -124,7 +124,7 @@ fi if [ $USE_EXISTING -ne 1 ]; then printf "setting up disk image... " - qemu-img create -q -f raw _disk_image $DISK_SIZE_BYTES || die "could not create disk image" + qemu-img create -q -f raw _disk_image "$DISK_SIZE_BYTES" || die "could not create disk image" chown "$SUDO_UID":"$SUDO_GID" _disk_image || die "could not adjust permissions on disk image" echo "done" |