Fixed apikey default handler

This commit is contained in:
Eric Renfro 2019-01-06 12:37:06 -05:00
parent 9815558c05
commit 5827aea184
Signed by: psi-jack
GPG key ID: 14977F3A50D9A5BF

View file

@ -87,14 +87,14 @@ EOF
args+=(-d "name=$o_title[2]")
fi
if [[ -n "$o_apikey" ]]; then
apikey="$o_apikey[2]"
fi
#if [[ -n "$o_apikey" ]]; then
# apikey="$o_apikey[2]"
#fi
if [[ -n "$o_url" ]]; then
server_url="$o_url[2]/api/create"
if [[ -n "$apikey" ]]; then
server_url="$server_url?apikey=$apikey"
if [[ -n "$o_apikey" ]]; then
server_url="$server_url?apikey=$o_apikey[2]"
fi
fi