mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-04-21 12:05:15 +00:00
Meta: Fix shellcheck errors in build-image-qemu.sh
This commit is contained in:
parent
b9f1c44dbb
commit
fbc1448eab
Notes:
sideshowbarker
2024-07-17 11:10:44 +09:00
Author: https://github.com/linusg Commit: https://github.com/SerenityOS/serenity/commit/fbc1448eab Pull-request: https://github.com/SerenityOS/serenity/pull/13951 Reviewed-by: https://github.com/IdanHo Reviewed-by: https://github.com/gmta ✅
1 changed files with 3 additions and 3 deletions
|
@ -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"
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue