From 78a4be9e6862b970ac33d5ea3f95c98e658a3557 Mon Sep 17 00:00:00 2001 From: Rob Landley Date: Mon, 28 Oct 2019 23:47:08 -0500 Subject: Only create test file "input" when input argument isn't empty. --- scripts/runtest.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'scripts') 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=$? -- cgit v1.2.3