wip
CICD-UCN/karsten.jeppesen/pipeline/head This commit looks good

This commit is contained in:
Karsten Jeppesen
2026-09-29 07:19:12 +02:00
parent 41d10aa82d
commit b3f1550794
84 changed files with 42 additions and 34 deletions
+2 -7
View File
@@ -17,13 +17,8 @@ CLI_MAX_SIZE="${5:-}" # override max size per file (bytes)
DEFAULT_EXTS="c,cpp,h,hpp,py,js,jsx,ts,tsx,java,cs,go,rb,php,rs,kt,scala,sh,bash,zsh,ps1,tf,tfvars,yaml,yml,json,ini,conf,properties,toml,xml,gradle,m,mm,sql,md,rst,txt"
if [ -n "$FILE_EXTS" ]; then
EXTS_RAW="$FILE_EXTS"
elif [ -n "${TEXT_FILE_EXTS:-}" ]; then
EXTS_RAW="$TEXT_FILE_EXTS"
else
EXTS_RAW="$DEFAULT_EXTS"
fi
echo "[DEBUG] FILE_EXTS:[$FILE_EXTS]"
[ -n "$FILE_EXTS" ] && EXTS_RAW="$FILE_EXTS" || EXTS_RAW="$DEFAULT_EXTS"
IFS=',' read -ra EXT_WHITELIST <<< "$(echo "$EXTS_RAW" | tr '[:upper:]' '[:lower:]' | tr -d ' ')"