Fix return code handling of config_testcd() + slightly refactor code
authorMichael Prokop <mika@grml.org>
Wed, 5 Sep 2012 07:11:29 +0000 (09:11 +0200)
committerMichael Prokop <mika@grml.org>
Wed, 5 Sep 2012 07:16:29 +0000 (09:16 +0200)
commita0b548a079931653d7b3a49b80062e324239873e
treedd3479fec922ec554688109d57371adf6e182727
parentee6d8c6975a97d54559515610e554657a14e031a
Fix return code handling of config_testcd() + slightly refactor code

The usage of a variable inside a *sub*shell ("RC=$?") breaks
checking for this variable later in the code ("if $RC -ne 0 ..."),
so testcd didn't do what we expect it to do.

While at it slightly refactor the code to match the look'n'feel
of grml-autoconfig.
autoconfig.functions