Scripts: Remove exit stmts covered by errexit
This commit is contained in:
committed by
Matthias Mailänder
parent
e2fd7ce7ed
commit
c29f1590c9
@@ -15,7 +15,7 @@ fi
|
||||
|
||||
# Set the working dir to the location of this script
|
||||
HERE=$(dirname "$0")
|
||||
cd "${HERE}" || exit 1
|
||||
cd "${HERE}"
|
||||
. ../functions.sh
|
||||
|
||||
TAG="$1"
|
||||
@@ -36,7 +36,7 @@ elif [[ ${TAG} == pkgtest* ]]; then
|
||||
SUFFIX="-pkgtest"
|
||||
fi
|
||||
|
||||
pushd "${TEMPLATE_ROOT}" > /dev/null || exit 1
|
||||
pushd "${TEMPLATE_ROOT}" > /dev/null
|
||||
|
||||
if [ ! -d "${OUTPUTDIR}" ]; then
|
||||
echo "Output directory '${OUTPUTDIR}' does not exist.";
|
||||
@@ -46,9 +46,9 @@ fi
|
||||
# Add native libraries
|
||||
echo "Downloading appimagetool"
|
||||
if command -v curl >/dev/null 2>&1; then
|
||||
curl -s -L -O https://github.com/AppImage/AppImageKit/releases/download/continuous/appimagetool-x86_64.AppImage || exit 3
|
||||
curl -s -L -O https://github.com/AppImage/AppImageKit/releases/download/continuous/appimagetool-x86_64.AppImage
|
||||
else
|
||||
wget -cq https://github.com/AppImage/AppImageKit/releases/download/continuous/appimagetool-x86_64.AppImage || exit 3
|
||||
wget -cq https://github.com/AppImage/AppImageKit/releases/download/continuous/appimagetool-x86_64.AppImage
|
||||
fi
|
||||
|
||||
chmod a+x appimagetool-x86_64.AppImage
|
||||
|
||||
@@ -3,6 +3,6 @@ set -o errexit || exit $?
|
||||
|
||||
LAUNCHER=$(readlink -f "${0}")
|
||||
HERE=$(dirname "${LAUNCHER}")
|
||||
cd "${HERE}/../lib/openra" || exit 1
|
||||
cd "${HERE}/../lib/openra"
|
||||
|
||||
./OpenRA.Server Game.Mod="{MODID}" "$@"
|
||||
|
||||
@@ -3,7 +3,7 @@ set -o errexit || exit $?
|
||||
|
||||
LAUNCHER=$(readlink -f "${0}")
|
||||
HERE="$(dirname "${LAUNCHER}")"
|
||||
cd "${HERE}/../lib/openra" || exit 1
|
||||
cd "${HERE}/../lib/openra"
|
||||
|
||||
# APPIMAGE is an environment variable set by the runtime
|
||||
# defining the absolute path to the .AppImage file
|
||||
|
||||
Reference in New Issue
Block a user