more pig stuff
This commit is contained in:
Regular → Executable
+6
-3
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user