Fixed apikey default handler
This commit is contained in:
parent
9815558c05
commit
5827aea184
1 changed files with 5 additions and 5 deletions
|
@ -87,14 +87,14 @@ EOF
|
||||||
args+=(-d "name=$o_title[2]")
|
args+=(-d "name=$o_title[2]")
|
||||||
fi
|
fi
|
||||||
|
|
||||||
if [[ -n "$o_apikey" ]]; then
|
#if [[ -n "$o_apikey" ]]; then
|
||||||
apikey="$o_apikey[2]"
|
# apikey="$o_apikey[2]"
|
||||||
fi
|
#fi
|
||||||
|
|
||||||
if [[ -n "$o_url" ]]; then
|
if [[ -n "$o_url" ]]; then
|
||||||
server_url="$o_url[2]/api/create"
|
server_url="$o_url[2]/api/create"
|
||||||
if [[ -n "$apikey" ]]; then
|
if [[ -n "$o_apikey" ]]; then
|
||||||
server_url="$server_url?apikey=$apikey"
|
server_url="$server_url?apikey=$o_apikey[2]"
|
||||||
fi
|
fi
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue