diff --git a/server-vm.sh b/server-vm.sh index 212103e..fd7d763 100644 --- a/server-vm.sh +++ b/server-vm.sh @@ -20,6 +20,9 @@ log() { } _discord() { + if ps aux | grep -v grep | grep -i discord; then + return + fi if ! _snap info discord; then sudo snap install discord fi @@ -28,7 +31,9 @@ _discord() { } _dolphin() { - log dolphin + if ps aux | grep -v grep | grep -i dolphin; then + return + fi if ! _snap info dolphin; then sudo snap install dolphin-emulator --beta fi