[Git-commits] [grml/grml-autoconfig] a0b548: Fix return code handling of config_testcd() + slig...

Michael Prokop mika at grml.org
Wed Sep 5 09:22:07 CEST 2012


  Branch: refs/heads/master
  Home:   https://github.com/grml/grml-autoconfig
  Commit: a0b548a079931653d7b3a49b80062e324239873e
      https://github.com/grml/grml-autoconfig/commit/a0b548a079931653d7b3a49b80062e324239873e
  Author: Michael Prokop <mika at grml.org>
  Date:   2012-09-05 (Wed, 05 Sep 2012)

  Changed paths:
    M autoconfig.functions

  Log Message:
  -----------
  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.





More information about the Git-commits mailing list