summaryrefslogtreecommitdiffstats
path: root/scripts/sh
diff options
context:
space:
mode:
authorGeorg Pfuetzenreuter2021-07-23 18:31:58 +0200
committerGeorg Pfuetzenreuter2021-07-23 18:31:58 +0200
commit34db3400cfa92e5922dddc992871a3c0d44c2704 (patch)
tree3ec49dca64b4da55e1efb8462b18f8b4f044fc22 /scripts/sh
parent1d9db91b3bbf001d4ce8e641ea52db2199be3132 (diff)
downloadsystem-34db3400cfa92e5922dddc992871a3c0d44c2704.tar.gz
system-34db3400cfa92e5922dddc992871a3c0d44c2704.tar.bz2
system-34db3400cfa92e5922dddc992871a3c0d44c2704.zip
Fixed condition.
Signed-off-by: Georg Pfuetzenreuter <georg@lysergic.dev>
Diffstat (limited to 'scripts/sh')
-rwxr-xr-xscripts/sh/deploy_ergo.sh2
-rwxr-xr-xscripts/sh/remove_ergo.sh2
2 files changed, 2 insertions, 2 deletions
diff --git a/scripts/sh/deploy_ergo.sh b/scripts/sh/deploy_ergo.sh
index 670e0e7..b7486a4 100755
--- a/scripts/sh/deploy_ergo.sh
+++ b/scripts/sh/deploy_ergo.sh
@@ -4,7 +4,7 @@ echo "Detected $DISTRIB"
if [[ ${DISTRIB} = "openSUSE Leap" ]]
echo
then
-if [ ! /opt/ergo ]
+if [ ! -d /opt/ergo ]
then
GOVER=`go version | { read _ _ v _; echo ${v#go}; }`
echo "Detected Go $GOVER"
diff --git a/scripts/sh/remove_ergo.sh b/scripts/sh/remove_ergo.sh
index c9af4de..0634946 100755
--- a/scripts/sh/remove_ergo.sh
+++ b/scripts/sh/remove_ergo.sh
@@ -1,5 +1,5 @@
#!/bin/sh
-if [ ! /opt/ergo ]
+if [ ! -d /opt/ergo ]
echo
then
read -p "Remove Ergo? This will kill running Ergo services and cause data loss. " -n 1 -r