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
|
||||
|
||||
Reference in New Issue
Block a user