Sciprts: Set pipefail or remove pipes

Errors in pipes are ignored otherwise
This commit is contained in:
Unrud
2022-06-05 14:07:27 +02:00
committed by Matthias Mailänder
parent 946cd8f322
commit 1b9a86c0a0
7 changed files with 13 additions and 12 deletions

View File

@@ -1,7 +1,7 @@
#!/bin/bash
# OpenRA packaging script for Linux (AppImage)
set -o errexit || exit $?
set -o errexit -o pipefail || exit $?
command -v tar >/dev/null 2>&1 || { echo >&2 "Linux packaging requires tar."; exit 1; }
command -v curl >/dev/null 2>&1 || command -v wget > /dev/null 2>&1 || { echo >&2 "Linux packaging requires curl or wget."; exit 1; }

View File

@@ -11,6 +11,7 @@ if [ -n "${APPIMAGE}" ]; then
LAUNCHER=${APPIMAGE}
APPIMAGEID=$(printf "file://%s" "${APPIMAGE}" | md5sum | cut -d' ' -f1)
test -n "${APPIMAGEID}"
LAUNCHER_NAME="appimagekit_${APPIMAGEID}-openra-{MODID}.desktop"
LAUNCHER_PATH="${HOME}/.local/share/applications/${LAUNCHER_NAME}"
export SDL_VIDEO_X11_WMCLASS="openra-{MODID}-{TAG}"