From d9aa2f2a9725cfe40947c47c7a5e006ee7892b5d Mon Sep 17 00:00:00 2001 From: Dylan Araps Date: Thu, 14 Jun 2018 20:21:50 +1000 Subject: [PATCH] fix shellcheck --- README.md | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/README.md b/README.md index 125ce70..c8ccc04 100644 --- a/README.md +++ b/README.md @@ -545,7 +545,7 @@ _() { # Undocumented method. # Note: This is commented to make shellcheck play nice. - for i in {1..10};{ echo "$i";} + # for i in {1..10};{ echo "$i";} # Expansion. for i in {1..10}; do echo "$i"; done @@ -584,9 +584,10 @@ _() { f()(($1)) # Using tests, loops etc. - # Note: You can also use ‘while’, ‘until’, ‘case’, ‘(())’, ‘[[]]’. - f()if true; then echo "$1"; fi - f()for i in "$@"; do echo "$i"; done + # NOTE: You can also use ‘while’, ‘until’, ‘case’, ‘(())’, ‘[[]]’. + # NOTE: These are commented to make shellcheck play nice. + # f()if true; then echo "$1"; fi + # f()for i in "$@"; do echo "$i"; done } ```