Merge remote-tracking branch 'qubesos/pr/135'
* qubesos/pr/135: misc/qubes-run-terminal: which -> type
This commit is contained in:
commit
c6e7d04b1c
@ -2,10 +2,11 @@
|
|||||||
# Try to find a terminal emulator that's installed and run it.
|
# Try to find a terminal emulator that's installed and run it.
|
||||||
|
|
||||||
for terminal in x-terminal-emulator gnome-terminal xfce4-terminal konsole urxvt rxvt termit terminator Eterm aterm roxterm termite lxterminal mate-terminal terminology st xterm; do
|
for terminal in x-terminal-emulator gnome-terminal xfce4-terminal konsole urxvt rxvt termit terminator Eterm aterm roxterm termite lxterminal mate-terminal terminology st xterm; do
|
||||||
if which $terminal >/dev/null 2>&1 ; then
|
# bogus warning from ShellCheck < 0.5.0
|
||||||
|
# shellcheck disable=SC2039
|
||||||
|
if type "$terminal" >/dev/null 2>&1 ; then
|
||||||
exec "$terminal"
|
exec "$terminal"
|
||||||
fi
|
fi
|
||||||
done
|
done
|
||||||
|
|
||||||
echo "ERROR: No suitable terminal found." > /dev/stderr
|
echo "ERROR: No suitable terminal found." >&2
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user