]> Nishi Git Mirror - gwion.git/commitdiff
:wrench: Improve test.sh portability
authorfennecdjay <astor.jeremie@wanadoo.fr>
Fri, 7 Jun 2019 22:24:28 +0000 (00:24 +0200)
committerfennecdjay <astor.jeremie@wanadoo.fr>
Fri, 7 Jun 2019 22:24:28 +0000 (00:24 +0200)
tests/sh/plugin.sh

index 2a2beaacafa5fca52de4d6a7d35522bb40a701d9..953f68a59f86f5446bf4e89ff1309cca3f8cc04d 100644 (file)
@@ -32,7 +32,7 @@ rm "empty.so"
 BASE_DIR="$PWD"
 cd tests/import || exit
 for test_file in *.c
-do test_plugin "${test_file:0:-2}"
+do test_plugin "$(basename $test_file .c)"
 done
 
 # clean