From 64057f955eb47eb358fc742c027d695748639cde Mon Sep 17 00:00:00 2001
From: Brian Davis <brian.davis@stopso.com>
Date: Tue, 1 Mar 2016 13:18:33 -0500
Subject: [PATCH] changed order of checks
---
tests/json-checks.sh | 6 +++---
tests/xml-checks.sh | 6 +++---
2 files changed, 6 insertions(+), 6 deletions(-)
diff --git a/tests/json-checks.sh b/tests/json-checks.sh
index 05aecc1..2b1b78f 100755
--- a/tests/json-checks.sh
+++ b/tests/json-checks.sh
@@ -42,12 +42,12 @@ fi
#check json for fortify file
echo "starting fortify-file check - json"
-if [ -f /bin/ls ]; then
-../checksec --format json --fortify-file /bin/ls > output.json
-elif [ -f /bin/bash ]; then
+if [ -f /bin/bash ]; then
../checksec --format json --fortify-file /bin/bash > output.json
elif [ -f /bin/sh ]; then
../checksec --format json --fortify-file /bin/sh > output.json
+elif [ -f /bin/ls ]; then
+../checksec --format json --fortify-file /bin/ls > output.json
else
echo "could not find valid file to test"
exit 255
diff --git a/tests/xml-checks.sh b/tests/xml-checks.sh
index c165085..e1b16e1 100755
--- a/tests/xml-checks.sh
+++ b/tests/xml-checks.sh
@@ -42,12 +42,12 @@ fi
#check xml for fortify file
echo "starting fortify-file check - xml"
-if [ -f /bin/ls ]; then
-../checksec --format xml --fortify-file /bin/ls > output.json
-elif [ -f /bin/bash ]; then
+if [ -f /bin/bash ]; then
../checksec --format xml --fortify-file /bin/bash > output.json
elif [ -f /bin/sh ]; then
../checksec --format xml --fortify-file /bin/sh > output.json
+elif [ -f /bin/ls ]; then
+../checksec --format xml --fortify-file /bin/ls > output.json
else
echo "could not find valid file to test"
exit 255