diff --git a/.gitea/actions/discover-skins/action.yml b/.gitea/actions/discover-skins/action.yml index 40ac326..58103aa 100644 --- a/.gitea/actions/discover-skins/action.yml +++ b/.gitea/actions/discover-skins/action.yml @@ -31,7 +31,9 @@ runs: # Find all skins and create JSON, write to shared file all_skins_file="/tmp/all_skins_shared.json" find "$SKINS_DIR" -mindepth 1 -maxdepth 1 -type d -print0 \ - | xargs -0 -n1 basename \ + | while IFS= read -r -d '' dir; do + basename "$dir" + done \ | jq -R . | jq -cs . > "$all_skins_file" json=$(cat "$all_skins_file")