mirror of
https://codeberg.org/andyscott/ziglings.git
synced 2024-12-22 14:03:10 -05:00
Merge pull request #29 from g-w1/scr
patches: make interpreter compat and make work if not in PATH
This commit is contained in:
commit
c204ac9291
2 changed files with 5 additions and 5 deletions
|
@ -1,4 +1,4 @@
|
||||||
#!/bin/bash
|
#!/bin/sh
|
||||||
#
|
#
|
||||||
# "I will be a shieldmaiden no longer,
|
# "I will be a shieldmaiden no longer,
|
||||||
# nor vie with the great Riders, nor
|
# nor vie with the great Riders, nor
|
||||||
|
@ -14,7 +14,7 @@
|
||||||
#
|
#
|
||||||
|
|
||||||
# We run from the patches dir. Go there now if not already.
|
# 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.
|
pwd # Show it upon the screen so all shall be made apparent.
|
||||||
|
|
||||||
# Create healed/ directory here if it doesn't already exist.
|
# Create healed/ directory here if it doesn't already exist.
|
||||||
|
|
|
@ -1,12 +1,12 @@
|
||||||
#!/bin/bash
|
#!/bin/sh
|
||||||
#
|
#
|
||||||
# "It isn't fair, my precious, is it,
|
# "It isn't fair, my precious, is it,
|
||||||
# to ask us what it's got in it's
|
# to ask us what it's got in it's
|
||||||
# nassty little pocketsess?"
|
# 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)
|
f=$(basename ../exercises/$1*.zig .zig 2> /dev/null)
|
||||||
b=../exercises/$f.zig
|
b=../exercises/$f.zig
|
||||||
a=../answers/$f.zig
|
a=../answers/$f.zig
|
||||||
|
|
Loading…
Reference in a new issue