yt-dlp-ntfy: mention PID when already running

This commit is contained in:
Lukáš Kucharczyk 2024-11-16 20:34:17 +01:00
parent b9f7855afc
commit d3132b0ca3
Signed by: lukas
SSH Key Fingerprint: SHA256:vMuSwvwAvcT6htVAioMP7rzzwMQNi3roESyhv+nAxeg
1 changed files with 1 additions and 1 deletions

View File

@ -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