diff options
-rwxr-xr-x | scripts/t-rex-64 | 8 |
1 files changed, 8 insertions, 0 deletions
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 + + |