]> ruderich.org/simon Gitweb - tlsproxy/tlsproxy.git/blobdiff - src/tlsproxy-add
tlsproxy-add,tlsproxy-setup: Check for invalid argument count.
[tlsproxy/tlsproxy.git] / src / tlsproxy-add
index c838a9a35980c5a1ff5d26ab467287d75ac29960..f7a945a85e9a919ea81ddb41d7cd3f317cdbb21d 100755 (executable)
@@ -22,7 +22,7 @@
 
 set -e
 
-if test "$#" -eq 0; then
+if test "$#" -ne 1 && test "$#" -ne 2; then
     echo "Usage: $0 <hostname> [<server-certificate>]"
     echo
     echo "Add the server certificate <server-certificate> (as .pem file) for "