diff --git a/gh-cleanup-notifications b/gh-cleanup-notifications index f09c96a..6402a23 100755 --- a/gh-cleanup-notifications +++ b/gh-cleanup-notifications @@ -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 "$@"