diff options
| -rwxr-xr-x | bin/weather-fetch.sh | 4 | ||||
| -rw-r--r-- | docs/superpowers/plans/2026-09-17-weather-widget.md | 4 |
2 files changed, 6 insertions, 2 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 diff --git a/docs/superpowers/plans/2026-09-17-weather-widget.md b/docs/superpowers/plans/2026-09-17-weather-widget.md index 36e2dc1..01cd767 100644 --- a/docs/superpowers/plans/2026-09-17-weather-widget.md +++ b/docs/superpowers/plans/2026-09-17-weather-widget.md @@ -762,8 +762,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 |
