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
|
#!/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")"
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user