helpers: moar fixes for helper versioning, use -L to follow symlink

This commit is contained in:
Alexandre Aubin 2024-06-04 14:59:17 +02:00
parent c4c0210dc1
commit 75b267dc42

View file

@ -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