Merge pull request #29 from g-w1/scr

patches: make interpreter compat and make work if not in PATH
This commit is contained in:
Dave Gauer 2021-03-02 20:07:03 -05:00 committed by GitHub
commit 2f1bf6f1af
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
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,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