commit b3619a98dd41cdef22d237cedd550282dbffde58 parent 3df01707baa50430ee679d049fc3c20323f8f286 Author: JayVii <jayvii[AT]posteo[DOT]de> Date: Thu, 16 Apr 2026 19:53:10 +0200 fix: do not exit after non-switch Diffstat:
| A | get_sun_times.sh | | | 6 | ++++++ |
| M | term-switch-theme.sh | | | 2 | +- |
2 files changed, 7 insertions(+), 1 deletion(-)
diff --git a/get_sun_times.sh b/get_sun_times.sh @@ -0,0 +1,6 @@ +#!/usr/bin/env bash + +# exit on error +set -euo pipefail + +curl -s 'https://wttr.in?format=%S\n%s' | tee /tmp/sunrise_sunset.txt diff --git a/term-switch-theme.sh b/term-switch-theme.sh @@ -12,7 +12,7 @@ fi if [[ $(cat /tmp/theme-switch-term-status) == "$1" ]]; then echo "[-] Did not switch theme: $1" - exit 1 + # exit 0 fi # define theme color based on given input