Skip to content

Commit

Permalink
Fixing github tests on macos.
Browse files Browse the repository at this point in the history
Using 'readlink -f' instead of 'realpath'.
  • Loading branch information
spog committed Dec 1, 2024
1 parent 1e1b3fc commit b932992
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions lib/git-subrepo
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,7 @@ set -e
export FILTER_BRANCH_SQUELCH_WARNING=1

# Import Bash+ helper functions:
REALPATH=$(if [ "$(uname)" == "Linux" ]; then echo realpath; else echo realpath; fi)
SUBREPO_EXT_DIR="$(dirname "$($REALPATH "${BASH_SOURCE[0]}")")/git-subrepo.d" # replaced by `make install`
SUBREPO_EXT_DIR="$(dirname "$(readlink -f "${BASH_SOURCE[0]}")")/git-subrepo.d" # replaced by `make install`
source "${SUBREPO_EXT_DIR}/bash+.bash"
bash+:import :std can version-check

Expand Down

0 comments on commit b932992

Please sign in to comment.