function properly, add .pig.date
This commit is contained in:
parent
1208b2cea6
commit
5e34f0bd2b
11
rss/pig_stow
11
rss/pig_stow
@ -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")"
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user