From 3d53cf046741ef7c8202b056fa77bab92077d799 Mon Sep 17 00:00:00 2001 From: Alexandre Aubin Date: Sat, 20 Jul 2024 22:47:44 +0200 Subject: [PATCH] helpers: force sourcing getopts before the other helpers to prevent stupid issues (in particular when renaming phpversion to php_version in helpers2.1) --- helpers/helpers | 1 + 1 file changed, 1 insertion(+) diff --git a/helpers/helpers b/helpers/helpers index 64f9322ae..393628052 100644 --- a/helpers/helpers +++ b/helpers/helpers @@ -13,6 +13,7 @@ YNH_HELPERS_DIR="$SCRIPT_DIR/helpers.v${YNH_HELPERS_VERSION}.d" case "$YNH_HELPERS_VERSION" in "1" | "2" | "2.1") readarray -t HELPERS < <(find -L "$YNH_HELPERS_DIR" -mindepth 1 -maxdepth 1 -type f) + source $YNH_HELPERS_VERSION/getopts for helper in "${HELPERS[@]}"; do [ -r "$helper" ] && source "$helper" done