Skip to content

Commit

Permalink
Merge pull request #13 from awendt/fix-script-dir
Browse files Browse the repository at this point in the history
fix: gh cleanup-notifications can be run from any directory
  • Loading branch information
awendt authored Nov 14, 2024
2 parents 3ae2366 + e4ac940 commit 6db803f
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion gh-cleanup-notifications
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,8 @@ if ! type -p node >/dev/null; then
exit 1
fi

SCRIPT_DIR="$( cd -- "$( dirname -- "${BASH_SOURCE[0]}" )" &> /dev/null && pwd )"

export GITHUB_TOKEN=$(gh auth token)

exec node index.js "$@"
exec node ${SCRIPT_DIR}/index.js "$@"

0 comments on commit 6db803f

Please sign in to comment.