[Bps-public-commit] r10734 - bpsbuilder/Shipwright/lib/Shipwright

sunnavy at bestpractical.com sunnavy at bestpractical.com
Wed Feb 6 03:08:38 EST 2008


Author: sunnavy
Date: Wed Feb  6 03:08:37 2008
New Revision: 10734

Modified:
   bpsbuilder/Shipwright/lib/Shipwright/Backend.pm

Log:
sometimes LINK is not link at all, try to do things right

Modified: bpsbuilder/Shipwright/lib/Shipwright/Backend.pm
==============================================================================
--- bpsbuilder/Shipwright/lib/Shipwright/Backend.pm	(original)
+++ bpsbuilder/Shipwright/lib/Shipwright/Backend.pm	Wed Feb  6 03:08:37 2008
@@ -39,7 +39,7 @@
     LINK=`readlink $0`
 fi
 
-if [ $LINK = '../etc/shipwright-script-wrapper' ]; then
+if [ "$LINK" = '' ] || [ $LINK = '../etc/shipwright-script-wrapper' ]; then
     BASE=$0
     BASE_DIR=`dirname "$BASE"`
     BASE_DIR=` (cd "$BASE_DIR"; pwd) `
@@ -63,7 +63,7 @@
     LINK=`readlink $0`
 fi
 
-if [ $LINK = '../etc/shipwright-perl-wrapper' ]; then
+if [ "$LINK" = '' ] || [ $LINK = '../etc/shipwright-perl-wrapper' ]; then
     BASE=$0
     BASE_DIR=`dirname "$BASE"`
     BASE_DIR=` (cd "$BASE_DIR"; pwd) `



More information about the Bps-public-commit mailing list