aboutsummaryrefslogtreecommitdiff
path: root/units/sn_auth.zsh
diff options
context:
space:
mode:
Diffstat (limited to 'units/sn_auth.zsh')
-rw-r--r--units/sn_auth.zsh3
1 files changed, 2 insertions, 1 deletions
diff --git a/units/sn_auth.zsh b/units/sn_auth.zsh
index 67e1e2d..8add23f 100644
--- a/units/sn_auth.zsh
+++ b/units/sn_auth.zsh
@@ -9,8 +9,9 @@ elif [[ -f "${user_config}/saucenao" ]]
then
sn_key="$(< "${user_config}/saucenao")"
return
-elif [[ -n "${sn_key}" ]]
+elif [[ -f "${default_user_config}/saucenao" ]]
then
+ sn_key="$(< "${default_user_config}/saucenao")"
return
else
output_text="You must provide your SauceNAO API key before you can use SauceNAO"