diff --git a/server-vm.sh b/server-vm.sh index fd7d763..d33df0a 100644 --- a/server-vm.sh +++ b/server-vm.sh @@ -20,7 +20,7 @@ log() { } _discord() { - if ps aux | grep -v grep | grep -i discord; then + if ps aux | grep -v grep | grep -v "server-vm.sh" | grep -i discord; then return fi if ! _snap info discord; then @@ -31,7 +31,7 @@ _discord() { } _dolphin() { - if ps aux | grep -v grep | grep -i dolphin; then + if ps aux | grep -v grep | grep -v "server-vm.sh" | grep -i dolphin; then return fi if ! _snap info dolphin; then