Skip to content

Commit 8e0182c

Browse files
committed
arithmetic expansion
Signed-off-by: Jordan Sokolic <[email protected]>
1 parent dc4fd11 commit 8e0182c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

build.sh

+1-1
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@ gen_rootfs_from_img() {
5555
wget "${img_url}" -O- | gzip -d > image.img
5656
wget "${version}" -O version.buildinfo
5757
offset=$(sfdisk -d image.img | grep "image.img2" | sed -E 's/.*start=\s+([0-9]+).*/\1/g')
58-
fakeroot unsquashfs -no-progress -quiet -offset $(( 512 * "$offset" )) -dest "$tmpdir" image.img
58+
fakeroot unsquashfs -no-progress -quiet -offset $(( 512 * offset )) -dest "$tmpdir" image.img
5959
fakeroot tar czf rootfs.tar.gz -C "$tmpdir" .
6060
}
6161

0 commit comments

Comments
 (0)