Use tabs as indentation consistently

This commit is contained in:
abcdefg30
2020-07-02 23:54:57 +02:00
committed by Oliver Brakmann
parent b3ee8b447e
commit a6d8d6cd8e
6 changed files with 65 additions and 65 deletions

View File

@@ -2,8 +2,8 @@
# OpenRA master packaging script
if [ $# -ne "2" ]; then
echo "Usage: ${0##*/} version outputdir."
exit 1
echo "Usage: ${0##*/} version outputdir."
exit 1
fi
export GIT_TAG="$1"
@@ -14,15 +14,15 @@ cd "${0%/*}" || exit 1
#build packages using a subshell so directory changes do not persist beyond the function
function build_package() (
function on_build() {
echo "$1 package build failed." 1>&2
}
#trap function executes on any error in the following commands
trap "on_build $1" ERR
set -e
echo "Building $1 package(s)."
cd "$1"
./buildpackage.sh "${GIT_TAG}" "${BUILD_OUTPUT_DIR}"
function on_build() {
echo "$1 package build failed." 1>&2
}
#trap function executes on any error in the following commands
trap "on_build $1" ERR
set -e
echo "Building $1 package(s)."
cd "$1"
./buildpackage.sh "${GIT_TAG}" "${BUILD_OUTPUT_DIR}"
)
#exit on any non-zero exited (failed) command