diff options
| author | Anton Bobov <anton@bobov.name> | 2024-10-01 21:19:10 +0500 |
|---|---|---|
| committer | Anton Bobov <anton@bobov.name> | 2024-10-01 21:19:10 +0500 |
| commit | a8e9049a3942835bf4e2347d1aa26a8cb7755d91 (patch) | |
| tree | 710f5dbe6e795b4e0b17108864757b094f4ebcc9 | |
| parent | 3a5ea53642b49b067bfb091e2e08693ace292a3c (diff) | |
Remove obsolet TTS balance script
| -rwxr-xr-x | tts-balance.sh | 23 |
1 files changed, 0 insertions, 23 deletions
diff --git a/tts-balance.sh b/tts-balance.sh deleted file mode 100755 index 0ae5a0b..0000000 --- a/tts-balance.sh +++ /dev/null @@ -1,23 +0,0 @@ -#!/bin/bash - -set -e - -help() { - echo "Print TTS card balance." - echo - echo "First argument should be card number (10 or 19 digits)." -} - -if [[ $1 =~ ^([0-9]{10}|[0-9]{19})$ ]] ; then - CARD_NUMBER=$1 -else - help - exit 1 -fi - -hash=($(echo -n $(date +%d.%m.%Y).$CARD_NUMBER | md5sum)) - -url=$(printf "%s?numberCard=%s&h=%s&hi=1&tf=json" "http://oao-tts.ru/services/lnt/infoBalansCard.php" $CARD_NUMBER $hash) - -bal=$(curl --silent "$url" | jq ".balance | tonumber") -echo "Balance: $bal" |
