From: Alexander Barton Date: Tue, 25 Dec 2012 21:26:34 +0000 (+0100) Subject: sys/profile: Only call "tset" when it is available X-Git-Url: https://arthur.barton.de/cgi-bin/gitweb.cgi?a=commitdiff_plain;ds=sidebyside;h=2c48ddad1d00bd4c2dd36499a616c87ca18bab54;p=ConfigScripts.git sys/profile: Only call "tset" when it is available --- diff --git a/sys/profile b/sys/profile index a2def55..6849ee5 100644 --- a/sys/profile +++ b/sys/profile @@ -132,7 +132,8 @@ fi [ "$PS1" ] || return # validate terminal definition -eval `tset -s -Q` +type -p tset >/dev/null 2>&1 +[ $? -eq 0 ] && eval `tset -s -Q` # generic shell prompt [ "$UID" -eq 0 ] \