Cleanup shebangs, add set -eou[x] pipefail to all files

This commit is contained in:
Sandro Jäckel 2019-07-06 16:17:03 +02:00
parent c949351391
commit 65c5833fd9
No known key found for this signature in database
GPG Key ID: 236B6291555E8401
6 changed files with 9 additions and 10 deletions

View File

@ -1,7 +1,5 @@
#!/bin/bash -x
set -euo pipefail
id
#!/bin/bash
set -eoux pipefail
FACTORIO_VOL=/factorio
mkdir -p "$FACTORIO_VOL"

View File

@ -1,4 +1,5 @@
#!/bin/bash
set -eou pipefail
if [[ -f /run/secrets/username ]]; then
USERNAME=$(cat /run/secrets/username)

View File

@ -1,10 +1,9 @@
#!/bin/bash -x
if [ -z "$1" ]; then
#!/bin/bash
set -eoux pipefail
echo "No argument supplied"
fi
SERVER_SCENARIO="$1"
set -euo pipefail
id

View File

@ -1,5 +1,5 @@
#!/bin/bash -x
if [ -z "$1" ]; then
#!/bin/bash
set -eoux pipefail
echo "No argument supplied"
fi
SERVER_SCENARIO="$1"

View File

@ -1,4 +1,5 @@
#!/bin/bash
set -eou pipefail
FACTORIO_VERSION=$1
MOD_DIR=$2

View File

@ -1,5 +1,5 @@
#!/bin/bash
set -eox pipefail
set -eoux pipefail
if [ -z "$1" ] && [ -n "$CI" ]; then
echo "Usage: ./build.sh \$VERSION_SHORT"