diff options
author | Rob Landley <rob@landley.net> | 2019-10-28 23:47:08 -0500 |
---|---|---|
committer | Rob Landley <rob@landley.net> | 2019-10-28 23:47:08 -0500 |
commit | 78a4be9e6862b970ac33d5ea3f95c98e658a3557 (patch) | |
tree | 9ba0c4da8456c6dc2237aa7a6859af8d31f2a14d /scripts | |
parent | ab3e920602e447ad85e17923095b886e07dd586e (diff) | |
download | toybox-78a4be9e6862b970ac33d5ea3f95c98e658a3557.tar.gz |
Only create test file "input" when input argument isn't empty.
Diffstat (limited to 'scripts')
-rw-r--r-- | scripts/runtest.sh | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/scripts/runtest.sh b/scripts/runtest.sh index 90d6299b..d1ae4408 100644 --- a/scripts/runtest.sh +++ b/scripts/runtest.sh @@ -114,7 +114,7 @@ testing() fi echo -ne "$3" > expected - echo -ne "$4" > input + [ ! -z "$4" ] && echo -ne "$4" > input || rm -f input echo -ne "$5" | ${EVAL:-eval} -- "$2" > actual RETVAL=$? |