fix(hooks): scope ENV_* to global (declare -g) so caller sees values
This commit is contained in:
@@ -37,7 +37,7 @@ load_env_vars() {
|
|||||||
# command substitution in backtick-containing comments
|
# command substitution in backtick-containing comments
|
||||||
value="${value%%[[:space:]]#*}"
|
value="${value%%[[:space:]]#*}"
|
||||||
if [[ -n "$key" && -n "$value" ]]; then
|
if [[ -n "$key" && -n "$value" ]]; then
|
||||||
declare "ENV_${key}=${value}"
|
declare -g "ENV_${key}=${value}"
|
||||||
fi
|
fi
|
||||||
done < "$file"
|
done < "$file"
|
||||||
fi
|
fi
|
||||||
|
|||||||
Reference in New Issue
Block a user