diff options
Diffstat (limited to 'super.sh')
| -rwxr-xr-x | super.sh | 15 |
1 files changed, 14 insertions, 1 deletions
@@ -5,4 +5,17 @@ theDate=$(\date -I) # ISO 8601, natch -:wq +# Where to store the log file +logFile=~/box/leger/etc/superLog.txt + + +# to log a value, the user must include it as an argument +if [ -z $1 ] + then + echo "Usage: provide an argument for super.sh to append to the log" + exit 1 +fi + +echo $theDate $1 >> $logFile + + |
