aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/patches/gollum.sh
diff options
context:
space:
mode:
authorDave Gauer <dave@ratfactor.com>2021-03-05 11:01:16 -0500
committerDave Gauer <dave@ratfactor.com>2021-03-05 11:01:16 -0500
commit0fea5bc00c0bc8486cb33d1aaef82a6355e612a8 (patch)
tree3dac6859509a576afadf05201b80400a562ee9ac /patches/gollum.sh
parent4f9c8f57ba7da2106d624dae4b16d1aeff2769a5 (diff)
parent8f732047b541c606182d81f47ab45b5b5259f223 (diff)
Merge branch 'main' of github.com:ratfactor/ziglings into main
Diffstat (limited to 'patches/gollum.sh')
-rwxr-xr-xpatches/gollum.sh6
1 files changed, 3 insertions, 3 deletions
diff --git a/patches/gollum.sh b/patches/gollum.sh
index 423d376..6531044 100755
--- a/patches/gollum.sh
+++ b/patches/gollum.sh
@@ -1,12 +1,12 @@
-#!/bin/bash
+#!/bin/sh
#
# "It isn't fair, my precious, is it,
# to ask us what it's got in it's
# nassty little pocketsess?"
-# Gollum, The Hobbit, or There and Back Again
+# Gollum, The Hobbit, or There and Back Again
#
-cd $(dirname $(which $0))
+cd $(dirname $(realpath $0))
f=$(basename ../exercises/$1*.zig .zig 2> /dev/null)
b=../exercises/$f.zig
a=../answers/$f.zig