appimage: fix AppRun shell-script POSIX compatibility

This commit is contained in:
Alibek Omarov 2019-06-12 22:14:12 +03:00 committed by GitHub
parent b535c24edb
commit 014a09e222
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -20,7 +20,7 @@ cat > $APPDIR/AppRun << 'EOF'
echo "Xash3D FWGS installed as AppImage." echo "Xash3D FWGS installed as AppImage."
ENGINEROOT=$(dirname -- "$(readlink -f -- "$0")") ENGINEROOT=$(dirname -- "$(readlink -f -- "$0")")
if [ "$XASH3D_BASEDIR" == "" ]; then if [ "$XASH3D_BASEDIR" = "" ]; then
export XASH3D_BASEDIR=$PWD export XASH3D_BASEDIR=$PWD
fi fi
export XASH3D_EXTRAS_PAK1="${ENGINEROOT}"/extras.pak export XASH3D_EXTRAS_PAK1="${ENGINEROOT}"/extras.pak