add check for file to do screen always

This commit is contained in:
Antonio J. Delgado 2023-04-27 09:38:34 +03:00
parent a0acdd69af
commit 376f3ecc24

View file

@ -1,6 +1,6 @@
#!/bin/bash
# Create a Screen session everytime, unless you don't want
if [ -e ~/.always_screen ]; then
screen_cmd=$(which screen)
if [ -n "${screen_cmd}" ]; then
if [ -n "${STY}" ]; then
@ -33,3 +33,4 @@ if [ -n "${screen_cmd}" ]; then
else
echo "Screen is not installed. Install it so always_screen in your bashrc will work."
fi
fi