From 049771d914adbc998dcdd143bd53d07344a63f7f Mon Sep 17 00:00:00 2001 From: P. J. McDermott Date: Mon, 01 Sep 2014 14:50:22 -0400 Subject: set_substvar(): Warn, don't error, on bad name --- (limited to 'lib') diff --git a/lib/substvars.sh b/lib/substvars.sh index 5ef662b..d69c693 100644 --- a/lib/substvars.sh +++ b/lib/substvars.sh @@ -32,7 +32,8 @@ set_substvar() name="$(printf '%s\n' "${name}" | tr 'A-Z-' 'a-z_')" case "${name:- }" in *[!a-z0-9_]*) - error 2 "$(get_msg 'substvar_invalid')" "${name}" + warn "$(get_msg 'substvar_invalid')" "${name}" + return 1 ;; esac -- cgit v0.9.1