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 ' \
|
'gnome-terminal -e ' \
|
||||||
'xfce4-terminal -e ' ; do
|
'xfce4-terminal -e ' ; do
|
||||||
terminal=${termcmd%% *}
|
terminal=${termcmd%% *}
|
||||||
if which $terminal > /dev/null 2>&1; then
|
if command -v $terminal >/dev/null 2>&1; then
|
||||||
printf %s\\n "'$termcmd'"
|
printf %s\\n "'$termcmd'"
|
||||||
exit
|
exit
|
||||||
fi
|
fi
|
||||||
|
|
Loading…
Reference in New Issue
Block a user