Fix Bashisms
The default /bin/sh in some places isn't bash (like Ubuntu, dash) and the script is using Bashisms: ``` [1005][rubiojr@octox] checkbashisms -f script/test possible bashism in script/test line 7 (alternative test command ([[ foo ]] should be [ foo ])): if [[ "$#" != "0" ]]; then ``` So trying to run it results in: ``` ./script/test: 7: ./script/test: [[: not found ^Cexit status 2 ```
This commit is contained in:
parent
c00f4f9291
commit
1f5220590d
@ -4,7 +4,7 @@
|
|||||||
|
|
||||||
target="./..."
|
target="./..."
|
||||||
|
|
||||||
if [[ "$#" != "0" ]]; then
|
if [ "$#" != "0" ]; then
|
||||||
target="./$@"
|
target="./$@"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user