Remove -s option from which in test script
When I tried running the tests with a debugger, the script failed with the following message:
Illegal option -s
Usage: /usr/bin/which [-a] args
Illegal option -s
Usage: /usr/bin/which [-a] args
No debugger found
In case this `-s` flag is needed for other OSes than Linux (I'm working with Ubuntu 18.04), this could be based on a `uname` check (like on line 44).
This commit is contained in:
parent
9ac496aced
commit
01fef6d81f
1 changed files with 2 additions and 2 deletions
|
|
@ -112,9 +112,9 @@ case ${mode} in
|
|||
;;
|
||||
|
||||
debug)
|
||||
if which -s lldb; then
|
||||
if which lldb; then
|
||||
lldb $cmd -- "${args[@]}"
|
||||
elif which -s gdb; then
|
||||
elif which gdb; then
|
||||
gdb $cmd -- "${args[@]}"
|
||||
else
|
||||
echo "No debugger found"
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue