From 8b4b5107bc40aa8e4d5dfece7b582494c7cde068 Mon Sep 17 00:00:00 2001 From: braxtonhall Date: Mon, 24 Oct 2022 23:04:53 -0700 Subject: Ruin my poor disk --- entries/braxtonhall/wc/.gitignore | 1 + 1 file changed, 1 insertion(+) create mode 100644 entries/braxtonhall/wc/.gitignore (limited to 'entries/braxtonhall/wc/.gitignore') diff --git a/entries/braxtonhall/wc/.gitignore b/entries/braxtonhall/wc/.gitignore new file mode 100644 index 0000000..f845a7d --- /dev/null +++ b/entries/braxtonhall/wc/.gitignore @@ -0,0 +1 @@ +*.fib \ No newline at end of file -- cgit v1.2.3-70-g09d2 From 2c3c3f0fe28f96731342d6f5fafff35a5714791d Mon Sep 17 00:00:00 2001 From: braxtonhall Date: Mon, 24 Oct 2022 23:52:13 -0700 Subject: ensure wc-fib(1)=1 --- entries/braxtonhall/wc/.gitignore | 2 +- entries/braxtonhall/wc/fib.sh | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) (limited to 'entries/braxtonhall/wc/.gitignore') diff --git a/entries/braxtonhall/wc/.gitignore b/entries/braxtonhall/wc/.gitignore index f845a7d..0aafc44 100644 --- a/entries/braxtonhall/wc/.gitignore +++ b/entries/braxtonhall/wc/.gitignore @@ -1 +1 @@ -*.fib \ No newline at end of file +**/1 \ No newline at end of file diff --git a/entries/braxtonhall/wc/fib.sh b/entries/braxtonhall/wc/fib.sh index fc419b3..1759dff 100644 --- a/entries/braxtonhall/wc/fib.sh +++ b/entries/braxtonhall/wc/fib.sh @@ -5,7 +5,7 @@ function rec () { if [ $2 == "0" ]; then : elif [ $2 == "1" ]; then - [ -f "$1/$2.fib" ] || echo "🥵" > "$1/$2.fib" + [ -f "$1/$2" ] || echo "🥵" > "$1/$2" else [ -d "$1/$2" ] || mkdir "$1/$2" rec "$1/$2" $(($2 - 1)) -- cgit v1.2.3-70-g09d2