Commit f35b64c8 authored by Damyan Ivanov's avatar Damyan Ivanov

return immediately if there is no output

otherwise we get errors from missing $TMP/out by grep
parent 7ee1db77
......@@ -30,6 +30,8 @@ dpt() {
ES=0
$REAL "$@" > "$TMP/pipe" || ES=$?
[ -e "$TMP/out" ] || return $ES
if [ `egrep -c "^Updating existing checkout in .+" "$TMP/out"` = 1 ]; then
DIR=`egrep '^Updating existing' "$TMP/out" | sed -e 's/Updating existing checkout in //'`
cd "$DIR"
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment