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"
|
PID_FILE="/tmp/yt-dlp-ntfy.pid"
|
||||||
|
|
||||||
# Check if the script is already running
|
# 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."
|
echo "Script is already running. Exiting."
|
||||||
exit 1
|
exit 1
|
||||||
fi
|
fi
|
||||||
|
|
Loading…
Reference in New Issue