aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDavid Phillips <david@sighup.nz>2017-06-27 17:26:58 +1200
committerDavid Phillips <david@sighup.nz>2017-06-27 17:26:58 +1200
commit3616b3c21130c7ee86ada66e02b84ebb55783183 (patch)
tree99248d0742ae455dc6fc7b0df10c8ff3312369ce
parenta3e735c45f08a345435a845fa73a293946992b59 (diff)
downloadsand-leek-3616b3c21130c7ee86ada66e02b84ebb55783183.tar.xz
Expand \r to \n before parsing in test.sh
-rwxr-xr-xtest.sh2
1 files changed, 1 insertions, 1 deletions
diff --git a/test.sh b/test.sh
index 2df0d7d..083626d 100755
--- a/test.sh
+++ b/test.sh
@@ -8,7 +8,7 @@ stderr="$(mktemp)"
# Four character search should be a < 1 second CPU burst for CI runner
./sand-leek -s site > $key 2>$stderr
-found="$(grep Found $stderr | cut -d ' ' -f 2)"
+found="$(tr '\r' '\n' < $stderr | grep Found | cut -d ' ' -f 2)"
echo "sand-leek says it found $found..."