rc: Use POSIX command -v
instead of which
This commit is contained in:
parent
d5726c0cfd
commit
56837eaece
|
@ -11,7 +11,7 @@ decl str termcmd %sh{
|
|||
'gnome-terminal -e ' \
|
||||
'xfce4-terminal -e ' ; do
|
||||
terminal=${termcmd%% *}
|
||||
if which $terminal > /dev/null 2>&1; then
|
||||
if command -v $terminal >/dev/null 2>&1; then
|
||||
printf %s\\n "'$termcmd'"
|
||||
exit
|
||||
fi
|
||||
|
|
Loading…
Reference in New Issue
Block a user