Run all sudo commands at once
This commit is contained in:
parent
6553faa980
commit
0e5ef23e16
|
@ -120,10 +120,7 @@ else
|
||||||
sudo wimdelete --soft "$wimFile" 2;
|
sudo wimdelete --soft "$wimFile" 2;
|
||||||
done;
|
done;
|
||||||
|
|
||||||
sudo umount -vf "$mountPath";
|
sudo bash -c 'umount -vf "$mountPath"; umount -vf "$bootPath"; umount -vf "$dataPath"; rm -rf "$mountPath" "$bootPath" "$dataPath";';
|
||||||
sudo umount -vf "$bootPath";
|
|
||||||
sudo umount -vf "$dataPath";
|
|
||||||
sudo rm -rf "$mountPath" "$bootPath" "$dataPath";
|
|
||||||
fi;
|
fi;
|
||||||
|
|
||||||
popd > /dev/null;
|
popd > /dev/null;
|
||||||
|
|
Loading…
Reference in a new issue