Pipe output of which (hash) to /dev/null
This commit is contained in:
parent
01fef6d81f
commit
e0bcb27943
1 changed files with 2 additions and 2 deletions
|
|
@ -112,9 +112,9 @@ case ${mode} in
|
|||
;;
|
||||
|
||||
debug)
|
||||
if which lldb; then
|
||||
if hash lldb &> /dev/null; then
|
||||
lldb $cmd -- "${args[@]}"
|
||||
elif which gdb; then
|
||||
elif hash gdb &> /dev/null; then
|
||||
gdb $cmd -- "${args[@]}"
|
||||
else
|
||||
echo "No debugger found"
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue