Do not fail if screen(1) is not installed
If screen is not present then an error message is displayed each time the prompt is displayed: -bash: screen : command not found The error message is now sent to /dev/null
This commit is contained in:
parent
081316ec5c
commit
99aa8e334b
@ -376,7 +376,7 @@ __jobcount_color()
|
||||
{
|
||||
local running=$(jobs -r | wc -l | tr -d " ")
|
||||
local stopped=$(jobs -s | wc -l | tr -d " ")
|
||||
local screens=$(screen -ls | grep -c Detach )
|
||||
local screens=$(screen -ls 2> /dev/null | grep -c Detach )
|
||||
|
||||
if [ $running != "0" -a $stopped != "0" -a $screens != "0" ] ; then
|
||||
rep="${NO_COL}${YELLOW}${screens}s${NO_COL}/${YELLOW}${running}r${NO_COL}/${LIGHT_YELLOW}${stopped}t${NO_COL}"
|
||||
|
Loading…
Reference in New Issue
Block a user