From 910e3a6a5ce97ea149462e2c7c8cfd71a7b37b57 Mon Sep 17 00:00:00 2001 From: Cody Boone Ferguson <53008573+xexyl@users.noreply.github.com> Date: Fri, 2 Feb 2024 12:19:38 -0800 Subject: [PATCH] Fix 2013/birken/try*sh for shellcheck --- 2013/birken/try.alt.sh | 2 +- 2013/birken/try.sh | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/2013/birken/try.alt.sh b/2013/birken/try.alt.sh index c0df5856c..2180b6f1b 100755 --- a/2013/birken/try.alt.sh +++ b/2013/birken/try.alt.sh @@ -22,7 +22,7 @@ PERL="$(type -P perl)" if [[ -n "$PERL" ]]; then read -r -n 1 -p "Press any key to try a random run: " echo 1>&2 - perl -e 'map{map{print int(rand()*8);}(0..16);print chr(10);}(0..30);' | tr '[0-4]' ' '| ./birken.alt + perl -e 'map{map{print int(rand()*8);}(0..16);print chr(10);}(0..30);' | tr '0-4' ' '| ./birken.alt fi for i in *.txt; do diff --git a/2013/birken/try.sh b/2013/birken/try.sh index 2f3982cac..0c1e2e02d 100755 --- a/2013/birken/try.sh +++ b/2013/birken/try.sh @@ -21,7 +21,7 @@ PERL="$(type -P perl)" if [[ -n "$PERL" ]]; then read -r -n 1 -p "Press any key to try a random run: " echo 1>&2 - perl -e 'map{map{print int(rand()*8);}(0..16);print chr(10);}(0..30);' | tr '[0-4]' ' '| ./birken + perl -e 'map{map{print int(rand()*8);}(0..16);print chr(10);}(0..30);' | tr '0-4' ' '| ./birken fi for i in *.txt; do