From e40eecd9e3213db0b2fa0e499d53032751a12617 Mon Sep 17 00:00:00 2001 From: aclist Date: Sun, 9 Oct 2022 11:29:22 +0900 Subject: [PATCH] Change conditional operator --- dzgui.sh | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/dzgui.sh b/dzgui.sh index ad78e42..41a2fc6 100755 --- a/dzgui.sh +++ b/dzgui.sh @@ -1,7 +1,7 @@ #!/bin/bash set -o pipefail -version=2.8.0-rc.22 +version=2.8.0-rc.23 aid=221100 game="dayz" @@ -81,7 +81,7 @@ depcheck(){ done } watcher_deps(){ - if [[ ! $(command -v wmctrl) ]] || [[ ! $(command -v xdotool) ]]; then + if [[ ! $(command -v wmctrl) ]] && [[ ! $(command -v xdotool) ]]; then echo "100" warn "Requires wmctrl or xdotool" exit 1 @@ -1591,9 +1591,6 @@ while true; do fi done } -#cleanup(){ -# rm $config_path/.lockfile -#} lock(){ if [[ ! -f $config_path/.lockfile ]]; then touch $config_path/.lockfile