Skip to content
Snippets Groups Projects
  • Daniel Ehlers's avatar
    bd28aa99
    Return exit code on missing value · bd28aa99
    Daniel Ehlers authored
    Let the site configuration value script return 1 when
    the requested value is not available.This enables us
    to react on failures, so we can for example use a default
    value.
    
    With this patch the script will return with exitcode 1 if
    the value is not found and no output on stdout. Otherwise
    exitcode is 0 and the value is returned on stdout.
    bd28aa99
    History
    Return exit code on missing value
    Daniel Ehlers authored
    Let the site configuration value script return 1 when
    the requested value is not available.This enables us
    to react on failures, so we can for example use a default
    value.
    
    With this patch the script will return with exitcode 1 if
    the value is not found and no output on stdout. Otherwise
    exitcode is 0 and the value is returned on stdout.