Compare commits
2 Commits
13a7988ade
...
0d622723ac
| Author | SHA1 | Date | |
|---|---|---|---|
|
0d622723ac
|
|||
|
94e50e97e1
|
@@ -1,3 +1,5 @@
|
||||
#!/usr/bin/env bash
|
||||
# SPDX-FileCopyrightText: 2025 Kris Lamoureux
|
||||
# SPDX-License-Identifier: 0BSD
|
||||
unset DOCKER_HOST
|
||||
exec /usr/bin/docker "$@"
|
||||
|
||||
@@ -16,12 +16,17 @@ if [ $# -lt 3 ]; then
|
||||
exit 1
|
||||
fi
|
||||
|
||||
if [ -z "$GOTIFY_URL" ]; then
|
||||
if [ -d ~/.config/gotify ] && [ -f ~/.config/gotify/env ]; then
|
||||
# shellcheck disable=SC1090
|
||||
. ~/.config/gotify/env
|
||||
fi
|
||||
|
||||
if [ -z "${GOTIFY_URL:-}" ]; then
|
||||
echo "[ERROR]: GOTIFY_URL environment variable is not set"
|
||||
exit 1
|
||||
fi
|
||||
|
||||
if [ -z "$GOTIFY_TOKEN" ]; then
|
||||
if [ -z "${GOTIFY_TOKEN:-}" ]; then
|
||||
echo "[ERROR]: GOTIFY_TOKEN environment variable is not set"
|
||||
exit 1
|
||||
fi
|
||||
|
||||
Reference in New Issue
Block a user