Skip to content

Commit

Permalink
trying to fix screen logging for older screen versions
Browse files Browse the repository at this point in the history
  • Loading branch information
behrisch committed Jan 27, 2019
1 parent e9db4fd commit 162912e
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions start_flash.sh
Original file line number Diff line number Diff line change
@@ -1,10 +1,13 @@
#!/bin/bash
bold=$(tput bold)
normal=$(tput sgr0)
if screen -Logfile /dev/null ls &> /dev/null; then
screen_minor=`screen --version | cut -d . -f 2`
if [ $screen_minor -gt 5 ]; then
screen_with_log="sudo screen -L -Logfile"
else
elif [ $screen_minor -eq 5 ]; then
screen_with_log="sudo screen -L"
else
screen_with_log="sudo screen -L -t"
fi
. ./config.txt

Expand Down

0 comments on commit 162912e

Please sign in to comment.