Run all sudo commands at once

This commit is contained in:
Manuel Thalmann 2023-07-09 13:39:45 +02:00
parent 6553faa980
commit 0e5ef23e16

View file

@ -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;