From dd9895d8101f17ce804830472cbb140eba1c46a0 Mon Sep 17 00:00:00 2001 From: Simon Butcher Date: Tue, 21 Jun 2016 15:12:00 +0100 Subject: [PATCH] Fix config.pl to return successful exitcode for full and realfull --- scripts/config.pl | 15 +++++++++------ 1 file changed, 9 insertions(+), 6 deletions(-) diff --git a/scripts/config.pl b/scripts/config.pl index 04a9a7452a..6f11d0ee83 100755 --- a/scripts/config.pl +++ b/scripts/config.pl @@ -225,13 +225,16 @@ if ($action eq "set"&& $force_option && !$done) { close $config_write; -if ($action eq "get" && $done) { - if ($value ne '') { - print $value; +if ($action eq "get") { + if($done) { + if ($value ne '') { + print $value; + } + exit 0; + } else { + # If the symbol was not found, return an error + exit -1; } - exit 0; -} else { - exit -1; } if ($action eq "full" && !$done) {