From 2c48ddad1d00bd4c2dd36499a616c87ca18bab54 Mon Sep 17 00:00:00 2001 From: Alexander Barton Date: Tue, 25 Dec 2012 22:26:34 +0100 Subject: [PATCH] sys/profile: Only call "tset" when it is available --- sys/profile | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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 ] \ -- 2.39.2