diff options
author | Dave Davenport <qball@gmpclient.org> | 2019-02-02 12:39:41 +0100 |
---|---|---|
committer | Dave Davenport <qball@gmpclient.org> | 2019-02-02 12:39:41 +0100 |
commit | f7daa9b1b1646ee4add38ceaf2e0edbfa572696f (patch) | |
tree | c99aad24bfeb03f7e255f34360f0d7beb205f544 | |
parent | b30b50dc5a2b3eb6b70fa9acfad61ba80254f78d (diff) |
[Scripts] Remove cat for pipe.
-rwxr-xr-x | test/run_dmenu_issue_292.sh | 2 | ||||
-rwxr-xr-x | test/run_dmenu_test.sh | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/test/run_dmenu_issue_292.sh b/test/run_dmenu_issue_292.sh index c9b671bb..142f3f2f 100755 --- a/test/run_dmenu_issue_292.sh +++ b/test/run_dmenu_issue_292.sh @@ -38,7 +38,7 @@ xdotool key Return # Get result, kill xvfb wait ${RPID} RETV=$? -OUTPUT=$(cat output.txt | tr '\n' ' ') +OUTPUT=$(tr '\n' ' ' < output.txt) if [ "${OUTPUT}" != '2 12 20 21 22 23 24 25 26 27 28 29 ' ] then echo "Got: '${OUTPUT}' expected '2 12 20 21 22 23 24 25 26 27 28 29 '" diff --git a/test/run_dmenu_test.sh b/test/run_dmenu_test.sh index 00694086..22b50bf8 100755 --- a/test/run_dmenu_test.sh +++ b/test/run_dmenu_test.sh @@ -16,7 +16,7 @@ xdotool key Return # Get result, kill xvfb wait ${RPID} RETV=$? -OUTPUT=$(cat output.txt | tr '\n' ' ') +OUTPUT=$( tr '\n' ' ' < output.txt ) if [ "${OUTPUT}" != 'noot mies ' ] then echo "Got: '${OUTPUT}' expected 'noot mies '" |