Skip to content

Commit

Permalink
remove extraneous sudo
Browse files Browse the repository at this point in the history
  • Loading branch information
crschardt committed Jul 2, 2024
1 parent 93f86ee commit 42d0d60
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion cleanup_image.sh
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@ if [[ -d "${mount}" ]]; then
# parted --script "${loopdev}" unit B resizepart "${rootfs_partnum}" "${rootfs_partend}"
# Can't use resizepart for shrinking with --script (parted bug#22167) => must rm then mkpart
if [ "$rootfs_partoldend" -gt "$rootfs_partend" ]; then
echo y | sudo parted ---pretend-input-tty "${loopdev}" unit B resizepart "${rootfs_partnum}" "${rootfs_partend}"
echo y | parted ---pretend-input-tty "${loopdev}" unit B resizepart "${rootfs_partnum}" "${rootfs_partend}"
else
echo "Rootfs partition not resized as it was not shrunk"
fi
Expand Down

0 comments on commit 42d0d60

Please sign in to comment.