diff options
author | Raymaekers Luca <raymaekers.luca@gmail.com> | 2024-02-24 15:06:36 +0100 |
---|---|---|
committer | Raymaekers Luca <raymaekers.luca@gmail.com> | 2024-02-24 15:06:36 +0100 |
commit | b625ace8c9fbb9df6be17b1c3b1519ac6325d8b9 (patch) | |
tree | 15b9aeecff5fd78d17f1355c3f36f315c1095364 /bin/extra/steamidtoname | |
parent | 0bf822bd012e63fbfcc8bd6cab6c033d98e8cad2 (diff) | |
parent | 363f4b6dd28fd4d7b30f8a669efea4b16f96a268 (diff) |
Merge branch 'main' of /var/git/dotfiles
Diffstat (limited to 'bin/extra/steamidtoname')
-rwxr-xr-x | bin/extra/steamidtoname | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/bin/extra/steamidtoname b/bin/extra/steamidtoname new file mode 100755 index 0000000..f1cee31 --- /dev/null +++ b/bin/extra/steamidtoname @@ -0,0 +1,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" |