1
0

support JSON feeds

This commit is contained in:
dtb
2022-11-05 08:55:45 -04:00
parent b315b02a59
commit be5c22dbb9
4 changed files with 15 additions and 15 deletions

View File

@@ -1,14 +1,7 @@
#!/bin/sh
set -e
filename="$(pig_pen)/$(pig_name $1)"
loop=0
filename="$(pig_pen)/$(pig_name "$1")"
while streq $loop 0; do
loop=1
if test -e "$filename"; then
cat "$filename"
else
pig_stow "$1" && loop=0
fi
done
test -e "$filename" || pig_stow "$1"
cat "$filename"