summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSt33v <github@f3rr3t.com>2021-11-09 11:12:13 +1100
committerSt33v <github@f3rr3t.com>2021-11-09 11:12:13 +1100
commit628c8d8eee29591f9fe96d2d734852962ce408e6 (patch)
tree78e933f6bb8c5b4e87a6dc6094199cbe40da5fee
parent88d5670dfe54adb674bce61fe21f92b13677d4c5 (diff)
well it works, but it could be augmented later, Ron
-rwxr-xr-xsuper.sh15
1 files changed, 14 insertions, 1 deletions
diff --git a/super.sh b/super.sh
index b8cfb29..c76aeaa 100755
--- a/super.sh
+++ b/super.sh
@@ -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
+
+