fetchzip: recursively run chmod +w on the unpackDir
Fixes https://github.com/NixOS/nixpkgs/issues/136030
This commit is contained in:
parent
a2c2a38f70
commit
5c37214abb
@ -40,6 +40,7 @@ in {
|
|||||||
renamed="$TMPDIR/${tmpFilename}"
|
renamed="$TMPDIR/${tmpFilename}"
|
||||||
mv "$downloadedFile" "$renamed"
|
mv "$downloadedFile" "$renamed"
|
||||||
unpackFile "$renamed"
|
unpackFile "$renamed"
|
||||||
|
chmod -R +w "$unpackDir"
|
||||||
''
|
''
|
||||||
+ (if stripRoot then ''
|
+ (if stripRoot then ''
|
||||||
if [ $(ls "$unpackDir" | wc -l) != 1 ]; then
|
if [ $(ls "$unpackDir" | wc -l) != 1 ]; then
|
||||||
|
Loading…
Reference in New Issue
Block a user