From a4882b1912652777202a0679c2640f4f6b327c28 Mon Sep 17 00:00:00 2001 From: Lars Kruse Date: Sat, 20 Jan 2018 01:49:15 +0100 Subject: [PATCH] nginx_error: enable 'set -eu' flags for shell --- plugins/nginx/nginx_error | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/plugins/nginx/nginx_error b/plugins/nginx/nginx_error index 73f77b07..9cb3d7df 100755 --- a/plugins/nginx/nginx_error +++ b/plugins/nginx/nginx_error @@ -80,6 +80,9 @@ GPLv3 =cut +set -eu + + # default environment variable values logpath=${logpath:-/var/log/nginx} @@ -149,7 +152,7 @@ do_autoconf () { } -case $1 in +case ${1:-} in config) do_config # support "dirty config" capability