openclaw_live_collect_auth_dirs_from_csv() {
local raw="${1:-}"
local token normalized
[[ -n "$(openclaw_live_trim "$raw")" ]] || return 0
IFS=',' read -r -a tokens <<<"$raw" for token in "${tokens[@]}"; do while IFS= read -r normalized; do
printf '%s\n'"$normalized" done < <(openclaw_live_should_include_auth_dir_for_provider "$token") done | awk 'NF && !seen[$0]++'
}
openclaw_live_collect_auth_dirs_from_override() {
local raw token normalized
raw="$(openclaw_live_trim "${OPENCLAW_DOCKER_AUTH_DIRS:-}")"
[[ -n "$raw" ]] || return 1
case "$raw" in all)
printf '%s\n'"${OPENCLAW_DOCKER_LIVE_AUTH_ALL[@]}"
return 0
;;
none)
return 0
;;
esac
IFS=',' read -r -a tokens <<<"$raw" for token in "${tokens[@]}"; do
normalized="$(openclaw_live_normalize_auth_dir "$token")" || continue
printf '%s\n'"$normalized" done | awk '!seen[$0]++'
return 0
}
openclaw_live_collect_auth_dirs() { if openclaw_live_collect_auth_dirs_from_override; then
return 0 fi
printf '%s\n'"${OPENCLAW_DOCKER_LIVE_AUTH_ALL[@]}"
}
openclaw_live_collect_auth_files_from_csv() {
local raw="${1:-}"
local token normalized
[[ -n "$(openclaw_live_trim "$raw")" ]] || return 0
IFS=',' read -r -a tokens <<<"$raw" for token in "${tokens[@]}"; do while IFS= read -r normalized; do
printf '%s\n'"$normalized" done < <(openclaw_live_should_include_auth_file_for_provider "$token") done | awk 'NF && !seen[$0]++'
}
openclaw_live_collect_auth_files_from_override() {
local raw
raw="$(openclaw_live_trim "${OPENCLAW_DOCKER_AUTH_DIRS:-}")"
[[ -n "$raw" ]] || return 1
case "$raw" in all)
printf '%s\n'"${OPENCLAW_DOCKER_LIVE_AUTH_FILES_ALL[@]}"
return 0
;;
none)
return 0
;;
esac
return 0
}
openclaw_live_collect_auth_files() { if openclaw_live_collect_auth_files_from_override; then
return 0 fi
printf '%s\n'"${OPENCLAW_DOCKER_LIVE_AUTH_FILES_ALL[@]}"
}
openclaw_live_join_csv() {
local first=1 value for value in "$@"; do
[[ -n "$value" ]] || continue if (( first )); then
printf '%s'"$value"
first=0 else
printf ',%s'"$value" fi done
}
openclaw_live_append_array() {
local target_array="${1:?target array required}"
local source_array="${2:?source array required}"
local count
eval"count=\${#$source_array[@]}" if ((count == 0)); then
return 0 fi eval"$target_array+=(\"\${$source_array[@]}\")"
}
openclaw_live_stage_auth_into_home() {
local dest_home="${1:?destination home directory required}"
shift
local mode="dirs"
local relative_path source_path dest_path
Die Informationen auf dieser Webseite wurden
nach bestem Wissen sorgfältig zusammengestellt. Es wird jedoch weder Vollständigkeit, noch Richtigkeit,
noch Qualität der bereit gestellten Informationen zugesichert.
Bemerkung:
Die farbliche Syntaxdarstellung und die Messung sind noch experimentell.