Commit b968186a authored by Vitaly Lipatov's avatar Vitaly Lipatov

pack.d/generic-appimage.sh: fix ELF executables permissions after 7z extraction

parent 2fea6bb6
......@@ -75,6 +75,9 @@ EOF
chmod og-w -R $BASEDIR
chmod a+rX -R $BASEDIR
# fix ELF executables permissions (7z doesn't preserve permissions from squashfs)
find $BASEDIR -type f -perm 0644 -exec file -N {} + | grep 'ELF.*executable' | cut -d: -f1 | xargs -r chmod -v a+x
erc pack $PKGNAME $BASEDIR
return_tar $PKGNAME
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment