Fixed condition.
Signed-off-by: Georg Pfuetzenreuter <georg@lysergic.dev>
This commit is contained in:
parent
3ea5e58c3a
commit
684861fac1
@ -4,7 +4,7 @@ echo "Detected $DISTRIB"
|
|||||||
if [[ ${DISTRIB} = "openSUSE Leap" ]]
|
if [[ ${DISTRIB} = "openSUSE Leap" ]]
|
||||||
echo
|
echo
|
||||||
then
|
then
|
||||||
if [ ! /opt/ergo ]
|
if [ ! -d /opt/ergo ]
|
||||||
then
|
then
|
||||||
GOVER=`go version | { read _ _ v _; echo ${v#go}; }`
|
GOVER=`go version | { read _ _ v _; echo ${v#go}; }`
|
||||||
echo "Detected Go $GOVER"
|
echo "Detected Go $GOVER"
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
#!/bin/sh
|
#!/bin/sh
|
||||||
if [ ! /opt/ergo ]
|
if [ ! -d /opt/ergo ]
|
||||||
echo
|
echo
|
||||||
then
|
then
|
||||||
read -p "Remove Ergo? This will kill running Ergo services and cause data loss. " -n 1 -r
|
read -p "Remove Ergo? This will kill running Ergo services and cause data loss. " -n 1 -r
|
||||||
|
Loading…
Reference in New Issue
Block a user