Scripts: Remove some subshells that ignore errors
This commit is contained in:
committed by
Matthias Mailänder
parent
1b9a86c0a0
commit
e2fd7ce7ed
@@ -9,7 +9,8 @@
|
|||||||
set -o errexit || exit $?
|
set -o errexit || exit $?
|
||||||
|
|
||||||
# Set the working directory to the location of this script
|
# Set the working directory to the location of this script
|
||||||
cd "$(dirname "$0")" || exit 1
|
HERE=$(dirname "$0")
|
||||||
|
cd "${HERE}" || exit 1
|
||||||
|
|
||||||
# Database does not exist or is older than 30 days.
|
# Database does not exist or is older than 30 days.
|
||||||
if [ -z "$(find . -path ./IP2LOCATION-LITE-DB1.IPV6.BIN.ZIP -mtime -30 -print)" ]; then
|
if [ -z "$(find . -path ./IP2LOCATION-LITE-DB1.IPV6.BIN.ZIP -mtime -30 -print)" ]; then
|
||||||
|
|||||||
@@ -1,7 +1,8 @@
|
|||||||
#!/bin/sh
|
#!/bin/sh
|
||||||
set -o errexit || exit $?
|
set -o errexit || exit $?
|
||||||
|
|
||||||
HERE="$(dirname "$(readlink -f "${0}")")"
|
LAUNCHER=$(readlink -f "${0}")
|
||||||
|
HERE=$(dirname "${LAUNCHER}")
|
||||||
|
|
||||||
# Run the game or server
|
# Run the game or server
|
||||||
if [ -n "$1" ] && [ "$1" = "--server" ]; then
|
if [ -n "$1" ] && [ "$1" = "--server" ]; then
|
||||||
|
|||||||
@@ -14,7 +14,8 @@ if [ $# -eq "0" ]; then
|
|||||||
fi
|
fi
|
||||||
|
|
||||||
# Set the working dir to the location of this script
|
# Set the working dir to the location of this script
|
||||||
cd "$(dirname "$0")" || exit 1
|
HERE=$(dirname "$0")
|
||||||
|
cd "${HERE}" || exit 1
|
||||||
. ../functions.sh
|
. ../functions.sh
|
||||||
|
|
||||||
TAG="$1"
|
TAG="$1"
|
||||||
|
|||||||
@@ -1,7 +1,8 @@
|
|||||||
#!/bin/sh
|
#!/bin/sh
|
||||||
set -o errexit || exit $?
|
set -o errexit || exit $?
|
||||||
|
|
||||||
HERE="$(dirname "$(readlink -f "${0}")")"
|
LAUNCHER=$(readlink -f "${0}")
|
||||||
|
HERE=$(dirname "${LAUNCHER}")
|
||||||
cd "${HERE}/../lib/openra" || exit 1
|
cd "${HERE}/../lib/openra" || exit 1
|
||||||
|
|
||||||
./OpenRA.Server Game.Mod="{MODID}" "$@"
|
./OpenRA.Server Game.Mod="{MODID}" "$@"
|
||||||
|
|||||||
@@ -2,5 +2,6 @@
|
|||||||
set -o errexit || exit $?
|
set -o errexit || exit $?
|
||||||
|
|
||||||
# OpenRA.Utility relies on keeping the original working directory, so don't change directory
|
# OpenRA.Utility relies on keeping the original working directory, so don't change directory
|
||||||
HERE="$(dirname "$(readlink -f "${0}")")"
|
LAUNCHER=$(readlink -f "${0}")
|
||||||
|
HERE=$(dirname "${LAUNCHER}")
|
||||||
"${HERE}/../lib/openra/OpenRA.Utility" {MODID} "$@"
|
"${HERE}/../lib/openra/OpenRA.Utility" {MODID} "$@"
|
||||||
|
|||||||
@@ -29,7 +29,8 @@ if [[ "${OSTYPE}" != "darwin"* ]]; then
|
|||||||
fi
|
fi
|
||||||
|
|
||||||
# Set the working dir to the location of this script
|
# Set the working dir to the location of this script
|
||||||
cd "$(dirname "${0}")" || exit 1
|
HERE=$(dirname "${0}")
|
||||||
|
cd "${HERE}" || exit 1
|
||||||
. ../functions.sh
|
. ../functions.sh
|
||||||
|
|
||||||
# Import code signing certificate
|
# Import code signing certificate
|
||||||
|
|||||||
@@ -9,7 +9,8 @@ if [ $# -ne "2" ]; then
|
|||||||
fi
|
fi
|
||||||
|
|
||||||
# Set the working dir to the location of this script
|
# Set the working dir to the location of this script
|
||||||
cd "$(dirname "$0")" || exit 1
|
HERE=$(dirname "$0")
|
||||||
|
cd "${HERE}" || exit 1
|
||||||
|
|
||||||
TAG="$1"
|
TAG="$1"
|
||||||
OUTPUTDIR="$2"
|
OUTPUTDIR="$2"
|
||||||
|
|||||||
@@ -15,7 +15,8 @@ if [ $# -ne "2" ]; then
|
|||||||
fi
|
fi
|
||||||
|
|
||||||
# Set the working dir to the location of this script
|
# Set the working dir to the location of this script
|
||||||
cd "$(dirname "$0")" || exit 1
|
HERE=$(dirname "$0")
|
||||||
|
cd "${HERE}" || exit 1
|
||||||
. ../functions.sh
|
. ../functions.sh
|
||||||
|
|
||||||
TAG="$1"
|
TAG="$1"
|
||||||
|
|||||||
Reference in New Issue
Block a user