Skip to content

Commit 69498e9

Browse files
authored
Fix SC2230
This is the official fix of the schellcheck error SC2230 (https://github.com/koalaman/shellcheck/wiki/SC2230) preventing the tests to succeed on MacOS.
1 parent 52da586 commit 69498e9

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

report-bug.sh

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -23,12 +23,12 @@ clipboard() {
2323
copy_cmd=clip
2424
fi
2525
# copy_cmd=clip
26-
elif which pbcopy >/dev/null 2>&1; then
26+
elif command -v pbcopy >/dev/null 2>&1; then
2727
copy_cmd="pbcopy"
28-
elif which xclip >/dev/null 2>&1; then
28+
elif command -v xclip >/dev/null 2>&1; then
2929
# copy_cmd="xclip -i -selection clipboard"
3030
copy_cmd="xclip"
31-
elif which xsel >/dev/null 2>&1 ; then
31+
elif command -v xsel >/dev/null 2>&1 ; then
3232
local copy_cmd="xsel -b"
3333
fi
3434
if [ -n "$copy_cmd" ] ;then

0 commit comments

Comments
 (0)