diff options
| author | Maria Lisina <sekoohaka.sarisan@gmail.com> | 2025-08-21 12:55:41 +0500 |
|---|---|---|
| committer | Maria Lisina <sekoohaka.sarisan@gmail.com> | 2025-08-21 12:55:41 +0500 |
| commit | 921f71c254dade9192b2b0f63985e4dc6312c594 (patch) | |
| tree | c685043ffb5e3899cb479d90e05bec4fba6599fd /units/sn_auth.zsh | |
| parent | 6cf690b29225daf5ddc4688ea141aa1f727191cd (diff) | |
bot: Allow to use SauceNAO API Key during deployment
Signed-off-by: Maria Lisina <sekoohaka.sarisan@gmail.com>
Diffstat (limited to 'units/sn_auth.zsh')
| -rw-r--r-- | units/sn_auth.zsh | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/units/sn_auth.zsh b/units/sn_auth.zsh index 39523ba..4aa8cce 100644 --- a/units/sn_auth.zsh +++ b/units/sn_auth.zsh @@ -9,6 +9,9 @@ elif [[ -f "${user_config}/saucenao" ]] then sn_key="$(< "${user_config}/saucenao")" return 0 +elif [[ -n "${sn_key}" ]] +then + return 0 else output_text="You must provide your SauceNAO API Key before you can use SauceNAO" return 0 |
