fish: test if variable exists
This commit is contained in:
parent
6351db2aea
commit
c832623c80
1 changed files with 1 additions and 1 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue