1
0
mirror of https://github.com/thib8956/nginx-proxy synced 2025-02-24 09:48:14 +00:00

tests: Avoid unnecessary bashisms

This commit is contained in:
Richard Hansen 2023-01-16 23:39:20 -05:00
parent d56b5b370d
commit 55cfae9636

View File

@ -1,4 +1,4 @@
#!/bin/bash #!/bin/sh
############################################################################### ###############################################################################
# # # #
# This script is meant to run the test suite from a Docker container. # # This script is meant to run the test suite from a Docker container. #
@ -9,8 +9,7 @@
############################################################################### ###############################################################################
# Returns the absolute directory path to this script # Returns the absolute directory path to this script
DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )" DIR=$(cd "${0%/*}" && pwd)
ARGS=("$@")
# check requirements # check requirements
echo "> Building nginx-proxy-tester image..." echo "> Building nginx-proxy-tester image..."
@ -22,4 +21,4 @@ exec docker run --rm -it --name "nginx-proxy-pytest" \
--volume "/var/run/docker.sock:/var/run/docker.sock" \ --volume "/var/run/docker.sock:/var/run/docker.sock" \
--volume "${DIR}:${DIR}" \ --volume "${DIR}:${DIR}" \
--workdir "${DIR}" \ --workdir "${DIR}" \
nginx-proxy-tester "${ARGS[@]}" nginx-proxy-tester "$@"