[ostree] gnomeos-install.sh: retrieve full path to srcdir



commit 99803babd984f300882ea5a63e18b335639ad1fb
Author: Carl-Anton Ingmarsson <ca ingmarsson gmail com>
Date:   Tue Apr 17 22:01:49 2012 +0200

    gnomeos-install.sh: retrieve full path to srcdir
    
    This fixes the installation of the grub2 script.

 gnomeos/gnomeos-install.sh |    4 +++-
 1 files changed, 3 insertions(+), 1 deletions(-)
---
diff --git a/gnomeos/gnomeos-install.sh b/gnomeos/gnomeos-install.sh
index 649b750..1b7cc78 100755
--- a/gnomeos/gnomeos-install.sh
+++ b/gnomeos/gnomeos-install.sh
@@ -22,8 +22,10 @@
 set -e
 set -x
 
-SRCDIR=`dirname $0`
 WORKDIR=`pwd`
+cd `dirname $0`
+SRCDIR=`pwd`
+cd $WORKDIR
 
 if test $(id -u) != 0; then
     cat <<EOF



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]