From 485f49c7da89898ea618644d1a92667f850efb32 Mon Sep 17 00:00:00 2001 From: bel Date: Wed, 29 Mar 2023 18:56:04 -0600 Subject: [PATCH] no snap run if running --- server-vm.sh | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) 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