Add "get hood by ID"

The previous server also offered a get_hood_by_ID.

Signed-off-by: Robert Langhammer <rlanghammer@web.de>
This commit is contained in:
Robert Langhammer 2024-01-21 21:52:39 +01:00
parent 2b281066f2
commit 587ad17fed
1 changed files with 6 additions and 0 deletions

6
get_hoodid.sh Executable file
View File

@ -0,0 +1,6 @@
#!/bin/sh
hoodfile=$(grep -l "id\": \"$1\"" hood/* )
[ -z $hoodfile ] && echo "no hood $1" && exit
cat $hoodfile