From 4812d1e9b7315308ccbf71b1247344bd36db1515 Mon Sep 17 00:00:00 2001 From: Adrian Batzill Date: Sun, 22 Sep 2024 10:13:15 +0100 Subject: [PATCH] fix script execution in bash --- image/mk_europe_edition64.sh | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/image/mk_europe_edition64.sh b/image/mk_europe_edition64.sh index d5dbd4d9..7a0b03e8 100755 --- a/image/mk_europe_edition64.sh +++ b/image/mk_europe_edition64.sh @@ -35,10 +35,9 @@ wget -c $BASE_IMAGE_URL || die "Download failed" unxz -k $ZIPNAME || die "Extracting image failed" # Check where in the image the root partition begins: -ptable=$(parted $IMGNAME unit B p) -bootoffset=$(echo $ptable | grep fat32 | awk -F ' ' '{print $2}') +bootoffset=$(parted $IMGNAME unit B p | grep fat32 | awk -F ' ' '{print $2}') bootoffset=${bootoffset::-1} -partoffset=$(echo $ptable | grep ext4 | awk -F ' ' '{print $2}') +partoffset=$(parted $IMGNAME unit B p | grep ext4 | awk -F ' ' '{print $2}') partoffset=${partoffset::-1} # Original image partition is too small to hold our stuff.. resize it to 2.5gb