Skip to content

Commit

Permalink
Better script, doesn't explode when screenlog.0 doesn't exist
Browse files Browse the repository at this point in the history
  • Loading branch information
0xjairo committed Mar 4, 2012
1 parent a16f5c9 commit fe4928c
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion sc
Original file line number Diff line number Diff line change
@@ -1,4 +1,9 @@
#!/bin/sh
SCREENLOG_FILE=screenlog.0

rm screenlog.0 && screen -L /dev/ttyACM0
if [ -e $SCREENLOG_FILE ]; then
rm screenlog.0
fi

screen -L /dev/ttyACM0

0 comments on commit fe4928c

Please sign in to comment.