diff options
| author | erdgeist <> | 2013-09-28 20:27:11 +0000 |
|---|---|---|
| committer | erdgeist <> | 2013-09-28 20:27:11 +0000 |
| commit | f894db544e1248b9e7ac7c7ea815dc7f54be2a25 (patch) | |
| tree | 9db78a394d35859a6ef8af7c4a54960cbce37e39 | |
| parent | a023f1551e9dbc1087d3eb52cd2c37f339095974 (diff) | |
remove unnecessary temporary variable
| -rwxr-xr-x | minimunin | 3 |
1 files changed, 1 insertions, 2 deletions
| @@ -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.}; |
