Skip to content

Commit

Permalink
helpers: moar fixes for helper versioning, use -L to follow symlink
Browse files Browse the repository at this point in the history
  • Loading branch information
alexAubin committed Jun 4, 2024
1 parent c4c0210 commit 75b267d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion helpers/helpers
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ set +x
YNH_HELPERS_DIR="$SCRIPT_DIR/helpers.v${YNH_HELPERS_VERSION}.d"
case "$YNH_HELPERS_VERSION" in
"1" | "2")
readarray -t HELPERS < <(find "$YNH_HELPERS_DIR" -mindepth 1 -maxdepth 1 -type f)
readarray -t HELPERS < <(find -L "$YNH_HELPERS_DIR" -mindepth 1 -maxdepth 1 -type f)
for helper in "${HELPERS[@]}"; do
[ -r "$helper" ] && source "$helper"
done
Expand Down

0 comments on commit 75b267d

Please sign in to comment.