aboutsummaryrefslogtreecommitdiffstats
path: root/config/hypr/UserScripts
diff options
context:
space:
mode:
authorprabinpanta0 <pantaprabin30@gmail.com>2025-10-27 10:44:54 +0545
committerprabinpanta0 <pantaprabin30@gmail.com>2025-10-27 10:44:54 +0545
commita37147a7c3f236028f1f44ebdc6fbb915cf2d5f0 (patch)
tree536d15ca93df7800f927c3aa0262d8d9c824e2b9 /config/hypr/UserScripts
parent7275b5f73ff6c1164cba645a5f41ac088a10e7cc (diff)
config(hypr): add python3 availability check, forward args and propagate exit status in Weather.sh
Diffstat (limited to 'config/hypr/UserScripts')
-rwxr-xr-xconfig/hypr/UserScripts/Weather.sh12
1 files changed, 11 insertions, 1 deletions
diff --git a/config/hypr/UserScripts/Weather.sh b/config/hypr/UserScripts/Weather.sh
index 744878a9..0540e51d 100755
--- a/config/hypr/UserScripts/Weather.sh
+++ b/config/hypr/UserScripts/Weather.sh
@@ -2,4 +2,14 @@
# /* ---- 💫 https://github.com/JaKooLit 💫 ---- */ ##
# weather info using Python script with Open-Meteo APIs
-python3 "$(dirname "$0")/Weather.py" \ No newline at end of file
+if ! command -v python3 >/dev/null 2>&1; then
+ echo "python3 not found in PATH" >&2
+ exit 127
+fi
+
+python3 "$(dirname "$0")/Weather.py" "$@"
+exit_code=$?
+if [ "$exit_code" -ne 0 ]; then
+ echo "Failed to run Weather.py" >&2
+fi
+exit "$exit_code" \ No newline at end of file
send patches to the email below
yukais@pinapelz.com
include the subject [PATCH repo_name]
pinapelz.com
homepage