Commit 7d7ace42 authored by Vitaly Lipatov's avatar Vitaly Lipatov

introduce echocon (print only if there is real console) and use it

parent ae773837
......@@ -57,9 +57,9 @@ if [ -n "$ALLBRANCHES" ] ; then
fi
if [ -n "$CHECKONLY" ] ; then
echo "Pull repo from $REPO"
echocon "Pull repo from $REPO"
UPTODATEres=`git pull $REBASE $REPO $@`
echo $UPTODATEres
echocon $UPTODATEres
echo $UPTODATEres | tail -n1 | grep -q "is up to date"
exit
fi
......
......@@ -27,3 +27,7 @@ echog()
fi
}
echocon()
{
tty -s && echo "$@"
}
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