From 55cfae963689f3b583c17ca22831361e5b8c901d Mon Sep 17 00:00:00 2001 From: Richard Hansen Date: Mon, 16 Jan 2023 23:39:20 -0500 Subject: [PATCH] tests: Avoid unnecessary bashisms --- test/pytest.sh | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/test/pytest.sh b/test/pytest.sh index beac0af..2ac281d 100755 --- a/test/pytest.sh +++ b/test/pytest.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/bin/sh ############################################################################### # # # 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 -DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )" -ARGS=("$@") +DIR=$(cd "${0%/*}" && pwd) # check requirements 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 "${DIR}:${DIR}" \ --workdir "${DIR}" \ - nginx-proxy-tester "${ARGS[@]}" + nginx-proxy-tester "$@"