Skip to content

Commit

Permalink
move dir_of_github_commons to comply with the sample in gh-commons
Browse files Browse the repository at this point in the history
  • Loading branch information
robstoll committed Feb 1, 2024
1 parent d6e1c05 commit c0e70b3
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions .gt/remotes/tegonal-gh-commons/pull-hook.sh
Original file line number Diff line number Diff line change
Expand Up @@ -13,15 +13,16 @@ shopt -s inherit_errexit
unset CDPATH
TEGONAL_SCRIPTS_LATEST_VERSION="v1.2.1"

if ! [[ -v dir_of_github_commons ]]; then
dir_of_github_commons="$(cd -- "$(dirname -- "${BASH_SOURCE[0]:-$0}")" >/dev/null && pwd 2>/dev/null)/lib/src"
readonly dir_of_github_commons
fi

if ! [[ -v dir_of_tegonal_scripts ]]; then
dir_of_tegonal_scripts="$(cd -- "$(dirname -- "${BASH_SOURCE[0]:-$0}")" >/dev/null && pwd 2>/dev/null)/../../src"
source "$dir_of_tegonal_scripts/setup.sh" "$dir_of_tegonal_scripts"
fi

if ! [[ -v dir_of_github_commons ]]; then
dir_of_github_commons="$(cd -- "$(dirname -- "${BASH_SOURCE[0]:-$0}")" >/dev/null && pwd 2>/dev/null)/lib/src"
readonly dir_of_github_commons
fi

sourceOnce "$dir_of_github_commons/gt/pull-hook-functions.sh"
sourceOnce "$dir_of_tegonal_scripts/utility/parse-fn-args.sh"
Expand Down

0 comments on commit c0e70b3

Please sign in to comment.