Fixed condition.

Signed-off-by: Georg Pfuetzenreuter <georg@lysergic.dev>
This commit is contained in:
Georg Pfuetzenreuter 2021-07-23 18:31:58 +02:00
parent 3ea5e58c3a
commit 684861fac1
Signed by: Georg
GPG Key ID: 63A375660ACA2B5F
2 changed files with 2 additions and 2 deletions

View File

@ -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"

View File

@ -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