From b15c6b710f19b74398acd738efb6281183c88b8d Mon Sep 17 00:00:00 2001 From: TheSiahxyz <164138827+TheSiahxyz@users.noreply.github.com> Date: Sun, 24 Aug 2025 12:05:10 +0900 Subject: updates --- mac/.local/bin/gitupdate | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'mac/.local/bin/gitupdate') diff --git a/mac/.local/bin/gitupdate b/mac/.local/bin/gitupdate index 4fed27e..a2c83b5 100755 --- a/mac/.local/bin/gitupdate +++ b/mac/.local/bin/gitupdate @@ -2,7 +2,10 @@ set -eu -pidof transmission-daemon >/dev/null && echo "Turn off transmission-daemon first!" && exit 1 +pgrep -x transmission-daemon >/dev/null 2>&1 && { + echo "Turn off transmission-daemon first!" + exit 1 +} # Check if inside a Git repository ! git rev-parse --is-inside-work-tree >/dev/null 2>&1 && echo "Not a git repository." && exit 1 -- cgit v1.2.3