diff --git a/nightly/bin/nightly b/nightly/bin/nightly index ecf868dcb..9a30636e6 100755 --- a/nightly/bin/nightly +++ b/nightly/bin/nightly @@ -12,7 +12,7 @@ # Returns the revision number of the source files with date $1. get_revision() { - if svn info . >&/dev/null; then + if svn info . >/dev/null 2>&1; then svn info -r "{$1}" "${scst_repo}" | sed -n 's/^Revision: //p' else git log --before="$1" | head -n 1 | cut -f2 -d ' ' @@ -53,7 +53,7 @@ usage () { # Startup #---------------------------------------------------------------------------- -if svn info . >&/dev/null; then +if svn info . >/dev/null 2>&1; then scst_repo="https://scst.svn.sourceforge.net/svnroot/scst/trunk" else scst_repo="$(dirname "$(dirname "$(cd "$(dirname "$0")" && echo "$PWD")")")" @@ -150,7 +150,7 @@ for logfile in old new ; do # Check out and run the tests. runcmd ${logfile} \ "Checking out SCST source tree" \ - "if svn info . >&/dev/null; then \ + "if svn info . >/dev/null 2>&1; then \ svn co -q -r {${date}} ${scst_repo} ${ABT_TMPDIR}/scst; \ else \ ( rmdir ${ABT_TMPDIR}/scst && \