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