Switch scripts to bash

Closes #268, #269
This commit is contained in:
Sandro Jäckel 2019-07-05 09:15:18 +02:00
parent 7028eb72f6
commit 29ee60236e
No known key found for this signature in database
GPG Key ID: 236B6291555E8401
5 changed files with 5 additions and 5 deletions

View File

@ -20,7 +20,7 @@ ENV PORT=34197 \
PGID="$PGID"
RUN mkdir -p /opt /factorio && \
apk add --update --no-cache pwgen su-exec binutils gettext libintl shadow curl jq && \
apk add --update --no-cache pwgen su-exec binutils gettext libintl shadow curl jq bash && \
curl -sSL "https://www.factorio.com/get-download/$VERSION/headless/linux64" \
-o /tmp/factorio_headless_x64_$VERSION.tar.xz && \
echo "$SHA1 /tmp/factorio_headless_x64_$VERSION.tar.xz" | sha1sum -c && \

View File

@ -35,7 +35,7 @@ if [ "$NRTMPSAVES" -gt 0 ]; then
rm -f "$SAVES"/*.tmp.zip
fi
if [[ $UPDATE_MODS_ON_START ]]; then
if [[ ${UPDATE_MODS_ON_START:-} ]]; then
./docker-update-mods.sh
fi

View File

@ -1,4 +1,4 @@
#!/bin/sh -x
#!/bin/bash -x
if [ -z "$1" ]; then
echo "No argument supplied"
fi

View File

@ -1,4 +1,4 @@
#!/bin/sh -x
#!/bin/bash -x
if [ -z "$1" ]; then
echo "No argument supplied"
fi

View File

@ -12,7 +12,7 @@ print_step()
echo "$1"
}
print_success()
print_success()
{
echo "$1"
}