diff --git a/rejoin-stack.sh b/rejoin-stack.sh index 65ba7214fa..30b7bab1cc 100755 --- a/rejoin-stack.sh +++ b/rejoin-stack.sh @@ -17,7 +17,7 @@ if [[ -e $TOP_DIR/stack-screenrc ]]; then echo "Attaching to already started screen session.." exec screen -r stack fi - exec screen -c $TOP_DIR/stack-screenrc -S $SCREEN_NAME + exec screen -c $TOP_DIR/stack-screenrc fi echo "Couldn't find $TOP_DIR/stack-screenrc file; have you run stack.sh yet?" diff --git a/stack.sh b/stack.sh index 0a5e1eea09..3fa025f939 100755 --- a/stack.sh +++ b/stack.sh @@ -836,7 +836,7 @@ fi # Clear screen rc file SCREENRC=$TOP_DIR/$SCREEN_NAME-screenrc if [[ -e $SCREENRC ]]; then - echo -n > $SCREENRC + rm -f $SCREENRC fi # Initialize the directory for service status check