#!/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