set -x and sort the deps

This commit is contained in:
2025-07-29 19:30:58 -05:00
parent 7f23cb6824
commit 51b4400928
3 changed files with 4 additions and 1 deletions

View File

@@ -78,7 +78,8 @@ print_req_pkgs() {
local req_pkgs_env_name="${pkg_mgr/-/_}_pkgs" local req_pkgs_env_name="${pkg_mgr/-/_}_pkgs"
declare -n req_pkgs="${req_pkgs_env_name}" declare -n req_pkgs="${req_pkgs_env_name}"
echo "${req_pkgs[@]}" local sorted_req_pkgs=($(printf '%s\n' "${req_pkgs[@]}" | sort))
echo "${sorted_req_pkgs[@]}"
} }
FB_FUNC_NAMES+=('print_pkg_mgr') FB_FUNC_NAMES+=('print_pkg_mgr')

View File

@@ -40,6 +40,7 @@ export FB_RUNNING_AS_SCRIPT=1
. main.sh . main.sh
scr_name="$(bash_basename $0)" scr_name="$(bash_basename $0)"
cmd="${scr_name//.sh}" cmd="${scr_name//.sh}"
set -x
$cmd $@' >"${ENTRY_SCRIPT}" $cmd $@' >"${ENTRY_SCRIPT}"
chmod +x "${ENTRY_SCRIPT}" chmod +x "${ENTRY_SCRIPT}"
fi fi

View File

@@ -4,4 +4,5 @@ export FB_RUNNING_AS_SCRIPT=1
. main.sh . main.sh
scr_name="$(bash_basename $0)" scr_name="$(bash_basename $0)"
cmd="${scr_name//.sh/}" cmd="${scr_name//.sh/}"
set -x
$cmd $@ $cmd $@