Use for loop and . to keep functions in current shell.

This commit is contained in:
2025-11-10 21:25:14 -07:00
parent 72ce1e2ab5
commit a4378c2bb3

View File

@@ -1019,8 +1019,10 @@
alias hugo-server-prod="hugo server --gc --minify"
alias hugo-server="hugo-server-dev"
global_functions: |
ls "{{ global_bin }}/"*".function" | while read global_function; do
source "$global_function"
for global_function in "{{ global_bin }}/"*".function"; do
if [[ -f "$global_function" ]]; then
. "$global_function"
fi
done
- name: General | Account Management | Users | Files | Common Variable