mirror of https://tildegit.org/ben/dotfiles
update pbm script
parent
838ba4a5cd
commit
ed6859c092
|
@ -1,9 +1,9 @@
|
||||||
#!/bin/sh
|
#!/bin/sh
|
||||||
|
|
||||||
pbm() {
|
pbm() {
|
||||||
curl -s https://pinballmap.com/api/v1/locations/$1/machine_details.json\?machines_only=1 \
|
curl -s https://pinballmap.com/api/v1/locations/$1/machine_details.json \
|
||||||
| jq -r '.machines | .[]' \
|
| jq -r '.machines | .[] | "\(.manufacturer) \(.name)"' \
|
||||||
> ~/public_html/pin/$2.txt
|
> ~/pub/$2.txt
|
||||||
}
|
}
|
||||||
|
|
||||||
pbm 9699 coinslot
|
pbm 9699 coinslot
|
||||||
|
|
Loading…
Reference in New Issue