From 5827aea1844c35b71430b240ac2d455dbf943271 Mon Sep 17 00:00:00 2001 From: Eric Renfro Date: Sun, 6 Jan 2019 12:37:06 -0500 Subject: [PATCH] Fixed apikey default handler --- .local/dotfiles/functions/lhpaste.zsh | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/.local/dotfiles/functions/lhpaste.zsh b/.local/dotfiles/functions/lhpaste.zsh index f94d045..a42df60 100644 --- a/.local/dotfiles/functions/lhpaste.zsh +++ b/.local/dotfiles/functions/lhpaste.zsh @@ -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