Scripts: Remove exit stmts covered by errexit

This commit is contained in:
Unrud
2022-06-05 14:07:52 +02:00
committed by Matthias Mailänder
parent e2fd7ce7ed
commit c29f1590c9
9 changed files with 19 additions and 19 deletions

View File

@@ -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

View File

@@ -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}" "$@"

View File

@@ -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