Skip to content

Commit 42d0d60

Browse files
committed
remove extraneous sudo
1 parent 93f86ee commit 42d0d60

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

cleanup_image.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,7 @@ if [[ -d "${mount}" ]]; then
6666
# parted --script "${loopdev}" unit B resizepart "${rootfs_partnum}" "${rootfs_partend}"
6767
# Can't use resizepart for shrinking with --script (parted bug#22167) => must rm then mkpart
6868
if [ "$rootfs_partoldend" -gt "$rootfs_partend" ]; then
69-
echo y | sudo parted ---pretend-input-tty "${loopdev}" unit B resizepart "${rootfs_partnum}" "${rootfs_partend}"
69+
echo y | parted ---pretend-input-tty "${loopdev}" unit B resizepart "${rootfs_partnum}" "${rootfs_partend}"
7070
else
7171
echo "Rootfs partition not resized as it was not shrunk"
7272
fi

0 commit comments

Comments
 (0)