Remove overlay directory after use

This commit is contained in:
Manuel Thalmann 2023-07-30 12:54:44 +02:00
parent 27b1b09cbd
commit 9bec38b254

View file

@ -78,6 +78,7 @@ else
mkdir -p "$(dirname "$isoFile")"; mkdir -p "$(dirname "$isoFile")";
mkwinpeimg --iso --arch amd64 --overlay "$overlayDir" --windows-dir "$mountPath" "$isoFile"; mkwinpeimg --iso --arch amd64 --overlay "$overlayDir" --windows-dir "$mountPath" "$isoFile";
sudo umount "$mountPath"; sudo umount "$mountPath";
rm -rf "$overlayDir";
if [ ! -b "$WIN_DISK" ] if [ ! -b "$WIN_DISK" ]
then then