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