aboutsummaryrefslogtreecommitdiff
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
commit0f04860ac07ac03edf758607d343afa672bf25d4 (patch)
tree3dac6859509a576afadf05201b80400a562ee9ac /patches/gollum.sh
parentc22c5d474d4c5c4ce9b4c29b39523f238a03f41d (diff)
parente4b8779ee59a8f514983657d1609e99c336c8b75 (diff)
downloadziglings-0f04860ac07ac03edf758607d343afa672bf25d4.tar.gz
ziglings-0f04860ac07ac03edf758607d343afa672bf25d4.tar.bz2
ziglings-0f04860ac07ac03edf758607d343afa672bf25d4.tar.xz
ziglings-0f04860ac07ac03edf758607d343afa672bf25d4.zip
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