summaryrefslogtreecommitdiff
path: root/super.sh
diff options
context:
space:
mode:
Diffstat (limited to 'super.sh')
-rwxr-xr-xsuper.sh7
1 files changed, 5 insertions, 2 deletions
diff --git a/super.sh b/super.sh
index 325f86d..36e02c6 100755
--- a/super.sh
+++ b/super.sh
@@ -15,8 +15,11 @@ if [ -z $1 ]
exit 1
fi
-echo $theDate,$1 >> $logFile
-#printf '%s,%s\n' $theDate ,$1 >> $logFile
+if [ $1 != "tail" ]
+ then
+ echo $theDate,$1 >> $logFile
+ #printf '%s,%s\n' $theDate ,$1 >> $logFile
+fi
# Note: double quote expression to preserve carriage returns (thanks, stackoverflow)
echo "$(tail ${logFile})"