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)
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.


No differences found