Fix 2013/birken/try*sh for shellcheck

This commit is contained in:
Cody Boone Ferguson committed 2024-02-02 12:19:38 -08:00
1 parent 18c2fe576d
commit 910e3a6a5c
2 files changed
+2 -2

No files matched your search

+1 -1
View File
@@ -22,7 +22,7 @@ PERL="$(type -P perl)"
if [[ -n "$PERL" ]]; then if [[ -n "$PERL" ]]; then
read -r -n 1 -p "Press any key to try a random run: " read -r -n 1 -p "Press any key to try a random run: "
echo 1>&2 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 fi
for i in *.txt; do for i in *.txt; do
+1 -1
View File
@@ -21,7 +21,7 @@ PERL="$(type -P perl)"
if [[ -n "$PERL" ]]; then if [[ -n "$PERL" ]]; then
read -r -n 1 -p "Press any key to try a random run: " read -r -n 1 -p "Press any key to try a random run: "
echo 1>&2 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 fi
for i in *.txt; do for i in *.txt; do