summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorerdgeist <>2013-09-28 20:27:11 +0000
committererdgeist <>2013-09-28 20:27:11 +0000
commitf894db544e1248b9e7ac7c7ea815dc7f54be2a25 (patch)
tree9db78a394d35859a6ef8af7c4a54960cbce37e39
parenta023f1551e9dbc1087d3eb52cd2c37f339095974 (diff)
remove unnecessary temporary variable
-rwxr-xr-xminimunin3
1 files changed, 1 insertions, 2 deletions
diff --git a/minimunin b/minimunin
index a36372f..ce7a857 100755
--- a/minimunin
+++ b/minimunin
@@ -325,8 +325,7 @@ env_for_plugin_from_config() {
325 unset in_sect 325 unset in_sect
326 while read line; do 326 while read line; do
327 case ${line## } in 327 case ${line## } in
328 \[*\]) v="${line#*[}"; v="${v%%]*}" 328 \[*\]) case [$1 in ${line%%]*}) in_sect=true;; *) unset in_sect ;; esac
329 case $1 in ${v}) in_sect=true;; *) unset in_sect ;; esac
330 ;; 329 ;;
331 env.*) [ "${in_sect}" ] || continue 330 env.*) [ "${in_sect}" ] || continue
332 _pref=${line#*env.}; 331 _pref=${line#*env.};