appimage-run: Fix type-1 support, used wrong directory

This commit is contained in:
tilpner 2018-10-16 13:55:31 +02:00
parent 82cafa41cb
commit 62dc7fbc61
No known key found for this signature in database
GPG Key ID: 6A13327225BE51F6

View File

@ -134,7 +134,8 @@ buildFHSUserEnv {
if ${file}/bin/file --mime-type --brief --keep-going "$APPIMAGE" | grep -q iso; then
# is type-1 appimage
${libarchive}/bin/bsdtar -x -C "$SQUASHFS_ROOT" -f "$APPIMAGE"
mkdir "$APPDIR"
${libarchive}/bin/bsdtar -x -C "$APPDIR" -f "$APPIMAGE"
else
# is type-2 appimage
"$APPIMAGE" --appimage-extract 2>/dev/null