From a4958d4ed45d08ea59408d280d49dec4750b580c Mon Sep 17 00:00:00 2001 From: Jacob Keller Date: Thu, 9 Jan 2014 15:28:10 -0800 Subject: [PATCH] email-sh-functions: add local variables to parse_prj_config Rather than assuming that the $cfgfile and $prj will be correctly defined, use the passed parameters. Use local to create local variables to use, just like in the regular config parsing. Signed-off-by: Jacob Keller Signed-off-by: Artem Bityutskiy --- email/aiaiai-email-sh-functions | 3 +++ 1 file changed, 3 insertions(+) diff --git a/email/aiaiai-email-sh-functions b/email/aiaiai-email-sh-functions index 0fbeb94..a8156af 100644 --- a/email/aiaiai-email-sh-functions +++ b/email/aiaiai-email-sh-functions @@ -166,6 +166,9 @@ parse_config() # Usage: parse_prj_config parse_prj_config() { + local cfgfile="$1"; shift + local prj="$1"; shift + cfg_name="$(ini_config_get "$cfgfile" "prj_$prj" "name")" [ -n "$cfg_name" ] || return 0 -- 2.50.1