diff --git a/deploy.sh b/deploy.sh index a3eafe7..6520850 100755 --- a/deploy.sh +++ b/deploy.sh @@ -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;