unixy scripts to help you solve that famous word puzzle game
whatToDo: allow overriding threshold
Zach DeCook 2022-04-28
parent 85d01bc · commit 91eb3b0
-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