Make 1989/fubar/fubar.sh use bash

Fixed for ShellCheck as well.

The if [ .. ] was changed to if [[ .. ]] and this was done in the C code
as well.
This commit is contained in:
Cody Boone Ferguson committed 2024-01-11 09:10:10 -08:00
1 parent 51790b6a94
commit 92a6682216
3 files changed
+7 -4

No files matched your search

+3 -3
View File
@@ -1,8 +1,8 @@
#!/usr/bin/env sh
#!/usr/bin/env bash
# to run fubar in the 'proper' way
# parse args
if [ $# -ne 1 ]; then
if [[ $# -ne 1 ]]; then
echo "usage: $0 number" 1>&2
exit 1
fi
@@ -15,5 +15,5 @@ r fubar.c
w ouroboros.c
EOF
chmod +x ouroboros.c
./ouroboros.c $1
./ouroboros.c "$1"
#rm -f ouroboros.c x1 x