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