patches: make interpreter compat and make work if not in PATH

This commit is contained in:
jacob gw 2021-03-01 23:41:34 -05:00
parent 28791f0cb8
commit 81e819ca6b
2 changed files with 5 additions and 5 deletions

View file

@ -1,4 +1,4 @@
#!/bin/bash
#!/bin/sh
#
# "I will be a shieldmaiden no longer,
# nor vie with the great Riders, nor
@ -14,7 +14,7 @@
#
# We run from the patches dir. Go there now if not already.
cd $(dirname $(which $0))
cd $(dirname $(realpath $0))
pwd # Show it upon the screen so all shall be made apparent.
# Create healed/ directory here if it doesn't already exist.

View file

@ -1,4 +1,4 @@
#!/bin/bash
#!/bin/sh
#
# "It isn't fair, my precious, is it,
# to ask us what it's got in it's
@ -6,7 +6,7 @@
# 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