Update .gitea/workflows/ci.yml
This commit is contained in:
@@ -610,10 +610,9 @@ jobs:
|
||||
|
||||
sanitize_filename() {
|
||||
echo "$1" | \
|
||||
tr -d '\r\n' | \
|
||||
tr -d '\000-\037' | \
|
||||
sed -e 's#[\\/:\*\?"<>|]#-#g' | \
|
||||
tr -s ' ' | \
|
||||
sed 's/^ *//;s/ *$//'
|
||||
sed 's/^[[:space:]]*//;s/[[:space:]]*$//'
|
||||
}
|
||||
|
||||
url_encode_path() {
|
||||
@@ -774,7 +773,6 @@ jobs:
|
||||
| sed -e 's/^[[:space:]]*//' -e 's/[[:space:]]*$//'
|
||||
}
|
||||
|
||||
# build header→folder map
|
||||
readarray -t skins <<< "$ALL_SKINS_DIR"
|
||||
declare -A hdr2fld
|
||||
for skin in "${skins[@]}"; do
|
||||
@@ -798,7 +796,6 @@ jobs:
|
||||
[[ "$root" == *icons ]] && base="${base%-mod-icons}"
|
||||
key=$(sanitize "$base")
|
||||
|
||||
# debug: show what key it’s looking up and what it finds
|
||||
echo " DEBUG: looking for key='$key' → '${hdr2fld[$key]:-<NONE>}'"
|
||||
|
||||
target="${hdr2fld[$key]:-}"
|
||||
@@ -811,7 +808,6 @@ jobs:
|
||||
echo " ✖ No mapping for '$base' (key='$key'), leaving $f"
|
||||
fi
|
||||
done < <(find "$root" -maxdepth 1 -type f -iname "*.$ext")
|
||||
# remove any now-empty skin folders
|
||||
find "$root" -mindepth 1 -maxdepth 1 -type d -empty -exec rmdir {} \; || true
|
||||
shopt -u nullglob
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user