Right some updates and patches
This commit is contained in:
parent
7c75f6ccd6
commit
27b824f152
|
@ -1,7 +1,7 @@
|
||||||
# Maintainer: Zergling_man, from fedora.email
|
# Maintainer: Zergling_man, from fedora.email
|
||||||
|
|
||||||
pkgname=swat-codegen
|
pkgname=swat-codegen
|
||||||
pkgver=1.0.8
|
pkgver=1.0.10
|
||||||
pkgrel=1
|
pkgrel=1
|
||||||
pkgdesc="A simple CLI interface to RCPDv3, the rank code management service for the game SWAT: Aftermath"
|
pkgdesc="A simple CLI interface to RCPDv3, the rank code management service for the game SWAT: Aftermath"
|
||||||
arch=('any')
|
arch=('any')
|
||||||
|
|
|
@ -8,5 +8,5 @@ Demolitions
|
||||||
Cyborg
|
Cyborg
|
||||||
Pyrotechnician
|
Pyrotechnician
|
||||||
Watchman wm
|
Watchman wm
|
||||||
TechOps techies
|
TechOps techies tech
|
||||||
UmbrellaClone gal alice
|
UmbrellaClone gal alice
|
||||||
|
|
|
@ -67,7 +67,7 @@ function save
|
||||||
if [ -n "$2" ]; then name=',"buildName":"'"${*:2}"'"'; fi
|
if [ -n "$2" ]; then name=',"buildName":"'"${*:2}"'"'; fi
|
||||||
res=`post rank-code '{"rankCode":"'$1'"'"$name"'}'`
|
res=`post rank-code '{"rankCode":"'$1'"'"$name"'}'`
|
||||||
jq <<< "$res"
|
jq <<< "$res"
|
||||||
if [ -z "`jq -r '.buildName // ""' <<< "$res"`" ]; then delete_code $1; fi # Don't bother storing any build that doesn't have a name. Assume it's just logging the results of a game.
|
if [ -z "`jq -r '.[0].buildName // ""' <<< "$res"`" ]; then delete_code $1; fi # Don't bother storing any build that doesn't have a name. Assume it's just logging the results of a game.
|
||||||
}
|
}
|
||||||
|
|
||||||
function generate
|
function generate
|
||||||
|
|
Loading…
Reference in New Issue
Block a user