Author: ranger
Date: Fri Jun 16 00:05:24 2006
New Revision: 118

URL: 
<http://svn.finkproject.org/websvn/listing.php?sc=1&rev=118&repname=user%3a+ranger>
Log:
don't do all the crazy stuff if we can't write to $LOGDIR

Modified:
    kde-admindir/trunk/build-helper.sh

Modified: kde-admindir/trunk/build-helper.sh
URL: 
<http://svn.finkproject.org/websvn/diff.php?path=/kde-admindir/trunk/build-helper.sh&rev=118&repname=user%3a+ranger>
==============================================================================
--- kde-admindir/trunk/build-helper.sh (original)
+++ kde-admindir/trunk/build-helper.sh Fri Jun 16 00:05:24 2006
@@ -1,7 +1,6 @@
 #!/bin/bash
 
 LOGDIR="/tmp/buildlog"
-mkdir -p "$LOGDIR"
 
 TYPE="$1";     shift
 NAME="$1";     shift
@@ -12,6 +11,13 @@
        echo "usage: $0 <type> <name> <version> <revision> <command> 
[command-args]"
        exit 0
 fi
+
+if [ ! -w "$LOGDIR" ]; then
+       "$@"
+       exit $?
+fi
+
+mkdir -p "$LOGDIR"
 
 check_for_failed() {
        if [ -f "$LOGDIR/$NAME-$VERSION-$REVISION.failed" ]; then



_______________________________________________
Fink-commits mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/fink-commits

Reply via email to