Allow returning null when loading game
[gamestick-pjgsapi.git] / bin / extract-uitranslation.sh
1 #!/bin/sh
2 # extract the UI translation from a server cache file
3 set -e
4
5 if [ $# -lt 1 ]; then
6     echo Error: connect cache json filename missing
7     exit 1
8 fi
9
10 if [ ! -f "$1" ]; then
11     echo Error: connect cache json file does not exist
12     exit 2
13 fi
14
15 jq -c .body.config.global.uitranslation "$1"