aboutsummaryrefslogtreecommitdiff
path: root/entries/braxtonhall/wc/fib.sh
diff options
context:
space:
mode:
authorBraxton Hall2022-10-25 06:54:10 +0000
committerGitHub2022-10-25 06:54:10 +0000
commitce7544a6db594f7d3dfad0d7dc65d01515e57ad6 (patch)
tree777d3262ecf8f4730c4487f331f88fe17becec9b /entries/braxtonhall/wc/fib.sh
parentaf72c05a0618aba8f419878beec0cbb26f0e4120 (diff)
parent2c3c3f0fe28f96731342d6f5fafff35a5714791d (diff)
Merge pull request #39 from braxtonhall/wc
Ensure wc fib(1)=1
Diffstat (limited to 'entries/braxtonhall/wc/fib.sh')
-rw-r--r--entries/braxtonhall/wc/fib.sh2
1 files changed, 1 insertions, 1 deletions
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))