diff --git a/winiso/deploy.fish b/winiso/deploy.fish index 68fe78a3..de09f8c6 100755 --- a/winiso/deploy.fish +++ b/winiso/deploy.fish @@ -157,6 +157,7 @@ begin begin set -l wimFile "$winOverlay/$wimFile" + chmod u+w (dirname "$wimFile") chmod u+w "$wimFile" while [ ! (wiminfo "$wimFile" 1 | grep "^$editionField" | cut -d ":" -f2 | string trim) = "Professional" ] @@ -169,6 +170,7 @@ begin wimoptimize "$wimFile" chmod u-w "$wimFile" + chmod u-w (dirname "$wimFile") end begin