Browse Source

Only run in interactive mode if running in an interactive shell

pull/731/head
Tim Kimber 4 years ago
parent
commit
9015a837f8
No known key found for this signature in database GPG Key ID: 3E1804964E76BD18
1 changed files with 7 additions and 1 deletions
  1. +7
    -1
      test/run-test.sh

+ 7
- 1
test/run-test.sh View File

@ -45,9 +45,15 @@ elif [[ "$OS" == "bash"* ]]; then
GETSSL_OS="alpine"
fi
if tty -s; then
INT="-it"
else
INT=""
fi
docker build --rm -f "test/Dockerfile-$OS" -t "getssl-$OS" .
# shellcheck disable=SC2086
docker run -it \
docker run $INT\
--env GETSSL_HOST=$ALIAS $STAGING \
--env GETSSL_IDN_HOST=$GETSSL_IDN_HOST \
--env GETSSL_OS=$GETSSL_OS \


Loading…
Cancel
Save