From d9001d53cf1a0e9bf66cfe805c71bb6927c6ca85 Mon Sep 17 00:00:00 2001 From: Hanoh Haim Date: Sun, 27 Mar 2016 14:17:14 +0300 Subject: t-rex-64 script return exit value to upper script --- scripts/t-rex-64 | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'scripts/t-rex-64') diff --git a/scripts/t-rex-64 b/scripts/t-rex-64 index 0516d7da..c18db43f 100755 --- a/scripts/t-rex-64 +++ b/scripts/t-rex-64 @@ -19,14 +19,22 @@ saveterm="$(stty -g)" # if we have a new core run optimized trex if cat /proc/cpuinfo | grep -q avx ; then ./_$(basename $0) $INPUT_ARGS + RESULT=$? if [ $? -eq 132 ]; then echo " WARNING this program is optimized for the new Intel processors. " echo " try the ./t-rex-64-o application that should work for any Intel processor but might be slower. " echo " try to run t-rex-64-o .. " ./_t-rex-64-o $INPUT_ARGS + RESULT=$? fi else ./_t-rex-64-o $INPUT_ARGS + RESULT=$? fi stty $saveterm +if [ $RESULT -ne 0 ]; then + exit $RESULT +fi + + -- cgit 1.2.3-korg