yt-dlp-ntfy: silent kill command
This commit is contained in:
parent
eaa9059fb5
commit
b9f7855afc
|
@ -5,7 +5,7 @@ set -ueo pipefail
|
|||
PID_FILE="/tmp/yt-dlp-ntfy.pid"
|
||||
|
||||
# Check if the script is already running
|
||||
if [ -e "$PID_FILE" ] && kill -0 $(cat "$PID_FILE"); then
|
||||
if [ -e "$PID_FILE" ] && kill -0 $(cat "$PID_FILE") &>/dev/null; then
|
||||
echo "Script is already running. Exiting."
|
||||
exit 1
|
||||
fi
|
||||
|
|
Loading…
Reference in New Issue