Fix permission issue

This commit is contained in:
Manuel Thalmann 2024-08-08 00:48:18 +02:00
parent 5d0c332ab5
commit a4a9b16446

View file

@ -157,6 +157,7 @@ begin
begin begin
set -l wimFile "$winOverlay/$wimFile" set -l wimFile "$winOverlay/$wimFile"
chmod u+w (dirname "$wimFile")
chmod u+w "$wimFile" chmod u+w "$wimFile"
while [ ! (wiminfo "$wimFile" 1 | grep "^$editionField" | cut -d ":" -f2 | string trim) = "Professional" ] while [ ! (wiminfo "$wimFile" 1 | grep "^$editionField" | cut -d ":" -f2 | string trim) = "Professional" ]
@ -169,6 +170,7 @@ begin
wimoptimize "$wimFile" wimoptimize "$wimFile"
chmod u-w "$wimFile" chmod u-w "$wimFile"
chmod u-w (dirname "$wimFile")
end end
begin begin