aidecoe     15/03/20 19:43:26

  Modified:             logstash-forwarder.initd
  Log:
  Don't warn if there's no tmp directory.
  
  (Portage version: 2.2.18/cvs/Linux x86_64, signed Manifest commit with key 
F0134531E1DBFAB5)

Revision  Changes    Path
1.2                  app-admin/logstash-forwarder/files/logstash-forwarder.initd

file : 
http://sources.gentoo.org/viewvc.cgi/gentoo-x86/app-admin/logstash-forwarder/files/logstash-forwarder.initd?rev=1.2&view=markup
plain: 
http://sources.gentoo.org/viewvc.cgi/gentoo-x86/app-admin/logstash-forwarder/files/logstash-forwarder.initd?rev=1.2&content-type=text/plain
diff : 
http://sources.gentoo.org/viewvc.cgi/gentoo-x86/app-admin/logstash-forwarder/files/logstash-forwarder.initd?r1=1.1&r2=1.2

Index: logstash-forwarder.initd
===================================================================
RCS file: 
/var/cvsroot/gentoo-x86/app-admin/logstash-forwarder/files/logstash-forwarder.initd,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -r1.1 -r1.2
--- logstash-forwarder.initd    20 Mar 2015 16:06:41 -0000      1.1
+++ logstash-forwarder.initd    20 Mar 2015 19:43:26 -0000      1.2
@@ -1,7 +1,7 @@
 #!/sbin/runscript
 # Copyright 1999-2015 Gentoo Foundation
 # Distributed under the terms of the GNU General Public License v2
-# $Header: 
/var/cvsroot/gentoo-x86/app-admin/logstash-forwarder/files/logstash-forwarder.initd,v
 1.1 2015/03/20 16:06:41 aidecoe Exp $
+# $Header: 
/var/cvsroot/gentoo-x86/app-admin/logstash-forwarder/files/logstash-forwarder.initd,v
 1.2 2015/03/20 19:43:26 aidecoe Exp $
 
 create_tmpdir() {
        local tmpdir="$(mktemp -d -p /tmp logstash-forwarder.XXXXXXXXXX)"
@@ -17,7 +17,7 @@
        local tmpdir=''
 
        for d in /tmp/logstash-forwarder.??????????; do
-               [[ -e $d ]] || return 1
+               [[ -e $d ]] || return 0
                [[ -d $d ]] || continue
 
                if ! [[ $tmpdir ]]; then




Reply via email to