commit 3661484bdfa7a0c644fad5e3bfe5568c51559ce7
Author: Elan Ruusamäe <[email protected]>
Date:   Thu Mar 7 21:22:59 2013 +0200

    v1.2.2: compat fix for dash
    
    dash is picky about assigning without quotes
    
    ./check_domain -d clickandpay.ru -c 300
    local: 120: 290: bad variable name
    
    thanks Александр Арутюнян <reborns#gmail.com> for reporting

 check_domain                    | 8 ++++----
 nagios-plugin-check_domain.spec | 2 +-
 2 files changed, 5 insertions(+), 5 deletions(-)
---
diff --git a/nagios-plugin-check_domain.spec b/nagios-plugin-check_domain.spec
index c6ac1ae..bfc0724 100644
--- a/nagios-plugin-check_domain.spec
+++ b/nagios-plugin-check_domain.spec
@@ -1,7 +1,7 @@
 %define                plugin  check_domain
 Summary:       Nagios pluging for checking a domain name expiration date
 Name:          nagios-plugin-%{plugin}
-Version:       1.2.1
+Version:       1.2.2
 Release:       1
 License:       GPL
 Group:         Networking
diff --git a/check_domain b/check_domain
index 57807a5..32e9788 100755
--- a/check_domain
+++ b/check_domain
@@ -18,15 +18,15 @@ set -- $args
 
 die() {
        local rc=$1
-       local msg=$2
-       echo $msg
+       local msg="$2"
+       echo "$msg"
        exit $rc
 }
 
 fullusage() {
        cat <<EOF
-check_domain - v1.2.1
-Copyright (c) 2005 Tomàs Núñez Lirola <[email protected]>, 2009-2012 Elan 
Ruusamäe <[email protected]>
+check_domain - v1.2.2
+Copyright (c) 2005 Tomàs Núñez Lirola <[email protected]>, 2009-2013 Elan 
Ruusamäe <[email protected]>
 under GPL License
 
 This plugin checks the expiration date of a domain name.
================================================================

---- gitweb:

http://git.pld-linux.org/gitweb.cgi/packages/nagios-plugin-check_domain.git/commitdiff/3661484bdfa7a0c644fad5e3bfe5568c51559ce7

_______________________________________________
pld-cvs-commit mailing list
[email protected]
http://lists.pld-linux.org/mailman/listinfo/pld-cvs-commit

Reply via email to