Skip to content

Commit

Permalink
Make wrapper script work from arbitrary directory
Browse files Browse the repository at this point in the history
  • Loading branch information
bbannier committed Dec 13, 2023
1 parent 268294b commit 8e13240
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion spicy-lint
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
#!/usr/bin/env bash

npm exec -- sg scan "$@"
PREFIX=$(realpath "$(dirname "${BASH_SOURCE[0]}")")
npm exec --prefix "$PREFIX" -- sg scan -c "$PREFIX/sgconfig.yml" "$@"

0 comments on commit 8e13240

Please sign in to comment.