svn commit: r1051093 - /forrest/zone/config/update_check.sh

[email protected]
Newsgroups gmane.text.xml.forrest.cvs
Message-ID <[email protected]>
Author: gmcdonald
Date: Mon Dec 20 13:19:28 2010
New Revision: 1051093

URL: http://svn.apache.org/viewvc?rev=1051093&view=rev
Log:
This works fine, though ultimately, what fixed the issue was specifying the full path to svn so crons minimal shell could find it and therefore also provide a true value of 0 for the test when appropriate. Fix for FOR-1209

Modified:
    forrest/zone/config/update_check.sh

Modified: forrest/zone/config/update_check.sh
URL: http://svn.apache.org/viewvc/forrest/zone/config/update_check.sh?rev=1051093&r1=1051092&r2=1051093&view=diff
==============================================================================
--- forrest/zone/config/update_check.sh (original)
+++ forrest/zone/config/update_check.sh Mon Dec 20 13:19:28 2010
@@ -1,7 +1,6 @@
-#!/bin/sh
+#!/bin/bash
 
-svn st -u /home/forrest/sources/forrest-trunk | grep '\*' > /dev/null
-
-if [ $? = 0 ]; then
-  /home/forrest/config/update-forrest-trunk.sh
+/usr/local/bin/svn st -u /home/forrest/sources/forrest-trunk | grep '\*' > /dev/null
+if [ ${?} -eq 0 ]; then
+    /home/forrest/config/update-forrest-trunk.sh
 fi
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.