more pig stuff

This commit is contained in:
2022-11-02 00:55:00 -04:00
parent 8ee09ede65
commit bcc6b0d3ac
6 changed files with 34 additions and 6 deletions
Regular → Executable
+6 -3
View File
@@ -1,9 +1,12 @@
#!/bin/sh
set -x
set -e
str isvalue "$pig_fetch" \
|| pig_fetch="$(command -v pig_fetch)"
while str isvalue "$1"; do
sh pig_fetch | xq -x "$(
$pig_fetch | xq -x "$(
printf '.
+ {
pig: {
@@ -13,7 +16,7 @@ while str isvalue "$1"; do
}
}' "$1" \
| tr -d '[:space:]' \
)" >"$(printf "%s\n" "$1" | tr -cd "[:alnum:]")".xml
)" >"$(pig_pen)/$(pig_name "$1")"
shift
done