commit 4f5f0a3a19fed1b24e5c42e78a2fbc8535dd5e31 parent 1dadb6863e588fc1803bcbc751bd9992cabaa220 Author: Kyle Milz <kyle@0x30.net> Date: Sat, 3 Dec 2016 17:03:36 -0700 src: add comments Diffstat:
M | src/check.sh | | | 6 | ++++++ |
1 file changed, 6 insertions(+), 0 deletions(-)
diff --git a/src/check.sh b/src/check.sh @@ -17,12 +17,18 @@ # set -eu +# +# Function that echoes it's arguments when stdin is a tty. +# print_tty() { if [ -t 1 ]; then echo $@ fi } +# +# Function that's called by for loops to allow easy iteration over integers. +# range() { i=0 while [ $i -lt $1 ]; do