From d3132b0ca3fec2166aa85805fc19726bbd565ab1 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Luk=C3=A1=C5=A1=20Kucharczyk?= Date: Sat, 16 Nov 2024 20:34:17 +0100 Subject: [PATCH] yt-dlp-ntfy: mention PID when already running --- yt-dlp-ntfy.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/yt-dlp-ntfy.sh b/yt-dlp-ntfy.sh index e10008b..40e9393 100755 --- a/yt-dlp-ntfy.sh +++ b/yt-dlp-ntfy.sh @@ -6,7 +6,7 @@ PID_FILE="/tmp/yt-dlp-ntfy.pid" # Check if the script is already running if [ -e "$PID_FILE" ] && kill -0 $(cat "$PID_FILE") &>/dev/null; then - echo "Script is already running. Exiting." + echo "Script is already running as PID $(cat $PID_FILE). Exiting." exit 1 fi