fish: test if variable exists

This commit is contained in:
Marcel Kapfer 2017-08-25 08:07:21 +02:00
parent 6351db2aea
commit c832623c80
1 changed files with 1 additions and 1 deletions

View File

@ -58,7 +58,7 @@ end
# Attach the autoscreen screen session if StumpWM is running
# and it's not already in use.
if test $DESKTOP_SESSION = "stumpwm"
if test \( -n $DESKTOP_SESSION \) -a \( $DESKTOP_SESSION = "stumpwm" \)
if screen -list | grep -q "No Sockets"
screen -dmS autoscreen
exec screen -r