[packages/nagios-plugin-check_domain] test: take domain from commandline too

glen glen at pld-linux.org
Fri Nov 8 20:48:39 CET 2013


commit af8e406644206f3ba430b39faee604998f890afb
Author: Elan Ruusamäe <glen at delfi.ee>
Date:   Fri Nov 8 21:48:27 2013 +0200

    test: take domain from commandline too

 test.sh | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
---
diff --git a/test.sh b/test.sh
index f2d9c84..734c153 100755
--- a/test.sh
+++ b/test.sh
@@ -21,6 +21,6 @@ dk-hostmaster.dk
 bbk.ac.uk
 "
 
-for domain in $domains; do
+for domain in ${*:-$domains}; do
 	sh -$- ./check_domain.sh -d $domain
 done
================================================================

---- gitweb:

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



More information about the pld-cvs-commit mailing list