mirror of
https://github.com/datajerk/gameserverclient.git
synced 2024-06-17 10:29:28 +00:00
15 lines
256 B
Bash
Executable File
15 lines
256 B
Bash
Executable File
#!/bin/bash
|
|
|
|
# needs better error handling, zxing returns true on fail, test with Stellar Invaders
|
|
|
|
set -e
|
|
|
|
tifftopnm <$1 2>/dev/null | pnmtojpeg >decode.jpg
|
|
|
|
URL=$(zxing decode.jpg && rm -f decode.jpg)
|
|
|
|
curl -sL $URL | sox - quick.aif
|
|
|
|
soxi -D quick.aif
|
|
|