summary refs log tree commit diff
path: root/mk.sh
diff options
context:
space:
mode:
authorDruid520 <r.ustydruid520@proton.me>2026-07-26 16:43:53 -0700
committerDruid520 <r.ustydruid520@proton.me>2026-07-26 16:43:53 -0700
commita7d298ebc451bfe50eca8af49d9255e03851b921 (patch)
tree8daca5fcaf4bf123b0a16538655bd22f7c263aa4 /mk.sh
parent2fc4486a8287736ee6d651de81d72c18e82f08f6 (diff)
MOD: update mk.sh to be more reliable
Diffstat (limited to 'mk.sh')
-rwxr-xr-xmk.sh5
1 files changed, 3 insertions, 2 deletions
diff --git a/mk.sh b/mk.sh index 28470ce..9c876e2 100755 --- a/mk.sh +++ b/mk.sh
@@ -6,10 +6,11 @@ if [ $# -ne 2 ]; then
6 exit 2 6 exit 2
7fi 7fi
8 8
9script="$1/mk/$2.sh" 9mk="mk"
10script="$1/$mk/$2.sh"
10 11
11if [ -f "$script" ]; then 12if [ -f "$script" ]; then
12 (cd "$1/mk" && sh "$2.sh") 13 (cd "$1" && sh "$mk/$2.sh")
13else 14else
14 echo "err: no such file/dir" >&2 15 echo "err: no such file/dir" >&2
15 exit 1 16 exit 1