From 652a2cf41f43c443b61edf0ac51e634e9bd008eb Mon Sep 17 00:00:00 2001 From: Bart Van Assche Date: Wed, 14 Nov 2012 10:42:27 +0000 Subject: [PATCH] nightly build: Convert bin/nightly from bash to POSIX shell syntax git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@4619 d57e44dd-8a1f-0410-8b47-8ef2f437770f --- nightly/bin/nightly | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) 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 && \