spotify-dl/api/kill_panic.sh

8 lines
155 B
Bash
Executable File

#!/bin/bash
sleep 1
if [[ $(cat /tmp/spotify-dl.log) == '' ]]; then
kill -9 $(ps -aux | grep "lib/spotify-ripper" | grep -v grep | awk '{print $2}')
fi