grknight    14/10/31 22:06:10

  Modified:             garb.sh
  Log:
  Refine enewuser command and remove bashisms;  Thanks to dcmwai in IRC for 
feedback
  
  (Portage version: 2.2.8-r2/cvs/Linux x86_64, signed Manifest commit with key 
67C78E1D)

Revision  Changes    Path
1.2                  sys-cluster/galera/files/garb.sh

file : 
http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sys-cluster/galera/files/garb.sh?rev=1.2&view=markup
plain: 
http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sys-cluster/galera/files/garb.sh?rev=1.2&content-type=text/plain
diff : 
http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sys-cluster/galera/files/garb.sh?r1=1.1&r2=1.2

Index: garb.sh
===================================================================
RCS file: /var/cvsroot/gentoo-x86/sys-cluster/galera/files/garb.sh,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -r1.1 -r1.2
--- garb.sh     30 Jul 2014 06:26:05 -0000      1.1
+++ garb.sh     31 Oct 2014 22:06:10 -0000      1.2
@@ -25,13 +25,13 @@
        for ADDRESS in ${GALERA_NODES} 0; do
                HOST=$(echo $ADDRESS | cut -d \: -f 1 )
                PORT=$(echo $ADDRESS | cut -d \: -f 2 )
-               if [[ "${HOST}" == "${PORT}" ]]; then
+               if [ "x${HOST}" = "x${PORT}" ]; then
                        PORT=${GALERA_PORT}
                fi
                PORT=${PORT:-$GALERA_PORT}
                nc -z ${HOST} ${PORT} > /dev/null &&  break
        done
-       if [ ${ADDRESS} == "0" ]; then
+       if [ ${ADDRESS} = "0" ]; then
                eerror "None of the nodes in GALERA_NODES is accessible"
                return 1
        fi




Reply via email to