Skip to content

Commit

Permalink
Improved overrides management
Browse files Browse the repository at this point in the history
  • Loading branch information
dmotte committed Dec 19, 2024
1 parent 90b0eab commit 1220ca4
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions scripts/mottekit/.gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
/overrides/*.sh
2 changes: 1 addition & 1 deletion scripts/mottekit/mottekit.sh
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ readonly subcmd=$1; shift
[ "$subcmd" = snip ] && { mottekit_snip "$@"; exit; }
[ "$subcmd" = update ] && { mottekit_update "$@"; exit; }

for i in ~/.mottekit/overrides/"$subcmd.sh" \
for i in "$basedir/overrides/$subcmd.sh" \
"$basedir/$subcmd.sh" \
"$(dirname "$basedir")/$subcmd.sh"

Expand Down

0 comments on commit 1220ca4

Please sign in to comment.