aboutsummaryrefslogtreecommitdiffstats
path: root/bin
diff options
context:
space:
mode:
Diffstat (limited to 'bin')
-rwxr-xr-xbin/weather-fetch.sh4
1 files changed, 3 insertions, 1 deletions
diff --git a/bin/weather-fetch.sh b/bin/weather-fetch.sh
index 76aa07b..d4e31c0 100755
--- a/bin/weather-fetch.sh
+++ b/bin/weather-fetch.sh
@@ -17,8 +17,10 @@ if [ ! -r "$ENV_FILE" ]; then
exit 1
fi
+set -a
# shellcheck source=/dev/null
-set -a; . "$ENV_FILE"; set +a
+. "$ENV_FILE"
+set +a
if [ -z "${KEY:-}" ]; then
echo "weather-fetch: KEY is empty in $ENV_FILE" >&2