minor correction; code was using a test file instead of the actual output file
Project: http://git-wip-us.apache.org/repos/asf/tinkerpop/repo Commit: http://git-wip-us.apache.org/repos/asf/tinkerpop/commit/2d69b9e7 Tree: http://git-wip-us.apache.org/repos/asf/tinkerpop/tree/2d69b9e7 Diff: http://git-wip-us.apache.org/repos/asf/tinkerpop/diff/2d69b9e7 Branch: refs/heads/TINKERPOP-1254 Commit: 2d69b9e71b11bcdbd3220809304fc8017d5ab9de Parents: 98f09ba Author: Daniel Kuppitz <daniel_kupp...@hotmail.com> Authored: Tue Jun 28 17:22:31 2016 +0200 Committer: Daniel Kuppitz <daniel_kupp...@hotmail.com> Committed: Tue Jun 28 17:22:31 2016 +0200 ---------------------------------------------------------------------- docs/preprocessor/preprocess-file.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/tinkerpop/blob/2d69b9e7/docs/preprocessor/preprocess-file.sh ---------------------------------------------------------------------- diff --git a/docs/preprocessor/preprocess-file.sh b/docs/preprocessor/preprocess-file.sh index 57a8b98..242cfe5 100755 --- a/docs/preprocessor/preprocess-file.sh +++ b/docs/preprocessor/preprocess-file.sh @@ -72,7 +72,7 @@ trap cleanup INT function cleanup { if [ -f "${output}" ]; then - if [ `wc -l /tmp/foo | awk '{print $1}'` -gt 0 ]; then + if [ `wc -l "${output}" | awk '{print $1}'` -gt 0 ]; then echo -e "\n\e[1mLast 10 lines of ${output}:\e[0m\n" tail -n10 ${output} echo