Load config only when credentials are unset
This commit is contained in:
@@ -16,9 +16,11 @@ if [ $# -lt 3 ]; then
|
|||||||
exit 1
|
exit 1
|
||||||
fi
|
fi
|
||||||
|
|
||||||
if [ -d ~/.config/gotify ] && [ -f ~/.config/gotify/env ]; then
|
if [ -z "${GOTIFY_URL:-}" ] || [ -z "${GOTIFY_TOKEN:-}" ]; then
|
||||||
# shellcheck disable=SC1090
|
if [ -d ~/.config/gotify ] && [ -f ~/.config/gotify/env ]; then
|
||||||
. ~/.config/gotify/env
|
# shellcheck disable=SC1090
|
||||||
|
. ~/.config/gotify/env
|
||||||
|
fi
|
||||||
fi
|
fi
|
||||||
|
|
||||||
if [ -z "${GOTIFY_URL:-}" ]; then
|
if [ -z "${GOTIFY_URL:-}" ]; then
|
||||||
|
|||||||
Reference in New Issue
Block a user