pig feed system
This commit is contained in:
@@ -0,0 +1,19 @@
|
||||
#!/bin/sh
|
||||
set -x
|
||||
|
||||
while str isvalue "$1"; do
|
||||
|
||||
sh pig_fetch | xq -x "$(
|
||||
printf '.
|
||||
+ {
|
||||
pig: {
|
||||
feed_url: "%b",
|
||||
pet_sound: "oink",
|
||||
version: "0"
|
||||
}
|
||||
}' "$1" \
|
||||
| tr -d '[:space:]' \
|
||||
)" >"$(printf "%s\n" "$1" | tr -cd "[:alnum:]")".xml
|
||||
|
||||
shift
|
||||
done
|
||||
Reference in New Issue
Block a user