From e249df4d565a2e37e5c110555aec7ec4aece8aa1 Mon Sep 17 00:00:00 2001 From: Zach Borboa Date: Sat, 13 Mar 2021 11:09:15 -0500 Subject: [PATCH] Change into script directory when running script --- tests/script.sh | 3 +++ 1 file changed, 3 insertions(+) diff --git a/tests/script.sh b/tests/script.sh index abe3921..adff38a 100755 --- a/tests/script.sh +++ b/tests/script.sh @@ -1,3 +1,6 @@ +SCRIPT_DIR="$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)" +cd "${SCRIPT_DIR}" + set -x # Use composer's phpunit and phpcs by adding composer bin directory to the path environment variable.