From 262385e429afc57cf871564e6ef93e85bc0aa4ac Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?S=C3=B6nke=20Ludwig?= Date: Tue, 22 Oct 2019 15:22:28 +0200 Subject: [PATCH] Fix test script macOS bash compatibility. --- travis-ci.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/travis-ci.sh b/travis-ci.sh index 439a8eb..2b91b6b 100755 --- a/travis-ci.sh +++ b/travis-ci.sh @@ -26,7 +26,7 @@ if [ ${BUILD_EXAMPLE=1} -eq 1 ]; then fi if [ ${RUN_TEST=1} -eq 1 ]; then for ex in `\ls -1 tests/*.d`; do - script="${ex:0:-2}.sh" + script="${ex%.d}.sh" if [ -e "$script" ]; then echo "[INFO] Running test scipt $script" (cd tests && "./${script:6}")