about summary refs log tree commit diff
diff options
context:
space:
mode:
authorZach DeCook <zachdecook@librem.one>2022-04-28 12:40:16 -0400
committerZach DeCook <zachdecook@librem.one>2022-04-28 12:40:16 -0400
commit91eb3b00326004f6406b54f21f142121ae241d99 (patch)
treedcc7a49da31d92caafdefbd781b52c730a8ba7e8
parent85d01bca438180ef4ebd0ac6e6c4377c2f524197 (diff)
downloadgurglesolver-91eb3b00326004f6406b54f21f142121ae241d99.tar.gz
whatToDo: allow overriding threshold
-rwxr-xr-xwhatToDo.sh2
1 files changed, 1 insertions, 1 deletions
diff --git a/whatToDo.sh b/whatToDo.sh
index 8c93daf..9b86e7b 100755
--- a/whatToDo.sh
+++ b/whatToDo.sh
@@ -1,7 +1,7 @@
 #!/bin/sh
 
 LIST="$(cat -)"
-if test "$(echo "$LIST" | wc -l)" -lt 13; then
+if test "$(echo "$LIST" | wc -l)" -lt ${2:-13}; then
 	# Get the answer on your next guess
 	echo "$LIST"
 else