1
0

function properly, add .pig.date

This commit is contained in:
dtb 2022-11-03 00:57:51 -04:00
parent 1208b2cea6
commit 5e34f0bd2b

View File

@ -1,20 +1,19 @@
#!/bin/sh #!/bin/sh
set -e set -ex
str isvalue "$pig_fetch" \ str isvalue "$pig_fetch" \
|| pig_fetch="$(command -v pig_fetch)" || pig_fetch="$(command -v pig_fetch)"
while str isvalue "$1"; do while str isvalue "$1"; do
$pig_fetch | xq -x "$( $pig_fetch "$1" | xq -x "$(
printf '. printf '.
+ { * { feed: { pig: {
pig: {
feed_url: "%b", feed_url: "%b",
pet_sound: "oink", pet_sound: "oink",
stow_date: "%b",
version: "0" version: "0"
} } } }' "$1" "$(date '+%Y-%m-%dT%T')"\
}' "$1" \
| tr -d '[:space:]' \ | tr -d '[:space:]' \
)" >"$(pig_pen)/$(pig_name "$1")" )" >"$(pig_pen)/$(pig_name "$1")"