Fix incorrect syntax

This commit is contained in:
Manuel Thalmann 2023-07-10 00:00:51 +02:00
parent abbfd0df71
commit 857afbe5ab

View file

@ -122,7 +122,7 @@ else
sudo wimdelete --soft "$wimFile" 2;
done;
sudo bash -c "umount -vf '$mountPath'; umount -vf '$bootPath'; umount -vf '$dataPath'; 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;