aboutsummaryrefslogtreecommitdiff
path: root/patches/gollum.sh
diff options
context:
space:
mode:
authorjacob gw <jacoblevgw@gmail.com>2021-03-01 23:41:34 -0500
committerjacob gw <jacoblevgw@gmail.com>2021-03-01 23:41:34 -0500
commit54f9cfc0f0298a42473a109ee0f4eaf89710f153 (patch)
tree91667b8481a9ba6b90c71dfa941bc99e189d4ae3 /patches/gollum.sh
parent95bdff5bfdf3c4300b844e14251cd3dcfcd76ef8 (diff)
downloadziglings-54f9cfc0f0298a42473a109ee0f4eaf89710f153.tar.gz
ziglings-54f9cfc0f0298a42473a109ee0f4eaf89710f153.tar.bz2
ziglings-54f9cfc0f0298a42473a109ee0f4eaf89710f153.tar.xz
ziglings-54f9cfc0f0298a42473a109ee0f4eaf89710f153.zip
patches: make interpreter compat and make work if not in PATH
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