yt-dlp-ntfy: mention PID when already running
This commit is contained in:
parent
b9f7855afc
commit
d3132b0ca3
|
@ -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
|
||||
|
||||
|
|
Loading…
Reference in New Issue