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 1d9db91b3b
commit 34db3400cf
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