diff --git a/networks/local/localnode/wrapper.sh b/networks/local/localnode/wrapper.sh index 83332a21c..fe8031e66 100755 --- a/networks/local/localnode/wrapper.sh +++ b/networks/local/localnode/wrapper.sh @@ -25,7 +25,7 @@ fi ## export TMHOME="/tendermint/node${ID}" -if [ -d "${TMHOME}/${LOG}" ]; then +if [ -d "`dirname ${TMHOME}/${LOG}`" ]; then "$BINARY" "$@" | tee "${TMHOME}/${LOG}" else "$BINARY" "$@"