blob: f1cee31be3feffb9a439084948f143993c72bbac (
plain)
1
2
3
4
5
6
7
8
|
#!/bin/sh
[ "$#" -eq 0 ] && >&2 printf "usage: steamidtoname <id>" && exit 1
name="$(curl -s https://store.steampowered.com/app/"$1"/ |
pup -p 'title text{}' |
sed 's/on Steam$//')"
printf '%s\n' "$name"
|