From dc69e93f39566da02ace4a7fa642d8b938ddd4f2 Mon Sep 17 00:00:00 2001 From: Theo Chatzimichos Date: Aug 04 2018 13:29:18 +0000 Subject: bin/test_show_highstate.sh: use _STATUS=$? instead of echo $? --- diff --git a/bin/test_show_highstate.sh b/bin/test_show_highstate.sh index 1291a74..f7e645d 100755 --- a/bin/test_show_highstate.sh +++ b/bin/test_show_highstate.sh @@ -27,7 +27,7 @@ write_grains() { show_highstate() { write_grains $country $city $virt_cluster $virtual $domain $RUN_TEST > /dev/null - _STATUS=$(echo $?) + _STATUS=$? # We ignore exit code 2 as it means that an empty file is produced # See https://github.com/saltstack/salt/issues/39172 if [[ $_STATUS -eq 0 ]] || [[ $_STATUS -eq 2 ]]; then