diff --git a/2004/schnitzi/try.sh b/2004/schnitzi/try.sh index 00fe66539..56c6d21f9 100755 --- a/2004/schnitzi/try.sh +++ b/2004/schnitzi/try.sh @@ -15,12 +15,19 @@ make CC="$CC" all >/dev/null || exit 1 # clear screen after compilation so that only the entry is shown clear +# check for vi in the unlikely case it's not installed +# +if [[ -z "$(type -P vi)" ]]; then + echo "$0: vi not installed, cannot proceed." 1>&2 + exit 1 +fi -echo "$ ./schnitzi &2 +read -r -n 1 -p "Press any key to run: ./schnitzi &2 ./schnitzi &2 -read -r -n 1 -p "Press any key to continue: " -echo - -echo "$ ./schnitzi &2 +read -r -n 1 -p "Press any key to run: ./schnitzi &2 ./schnitzi &2 diff --git a/thanks-for-help.md b/thanks-for-help.md index 5fda2cda5..7721e8ba6 100644 --- a/thanks-for-help.md +++ b/thanks-for-help.md @@ -3081,6 +3081,8 @@ He also changed the time factor in the data files as the animations went too fast in modern systems, especially the scrolling text of [schnitzi.inp1](schnitzi.inp1). +Cody also added the [try.sh](/2004/schnitzi/try.sh) script. + ## [2004/sds](/2004/sds/sds.c) ([README.md](/2004/sds/README.md))