]> git.scottworley.com Git - keystroke-timestamps/blobdiff - gaps.sh
Allow the log file to be specified as an argument
[keystroke-timestamps] / gaps.sh
diff --git a/gaps.sh b/gaps.sh
index 46a05cc1f30af8d70162fce280b912e8e8e7e894..cf951049217ebf8e1e13fda0fb643612f728bc94 100755 (executable)
--- a/gaps.sh
+++ b/gaps.sh
@@ -1,7 +1,7 @@
 #!/bin/bash
 
 threshold=${1:-3600}
 #!/bin/bash
 
 threshold=${1:-3600}
-LOGFILE="$HOME/keystroke-timestamps.log"
+LOGFILE="${2:-$HOME/keystroke-timestamps.log}"
 
 awk -vthreshold="$threshold" '
   BEGIN {
 
 awk -vthreshold="$threshold" '
   BEGIN {