[ostree] gnomeos-install: don't cd into /ostree prematurely



commit 75cd0b84945887ae338aedaa408f68fb2a2a4280
Author: Diego Escalante Urrelo <diegoe igalia com>
Date:   Thu Apr 5 00:30:20 2012 -0500

    gnomeos-install: don't cd into /ostree prematurely
    
    The script will die and not proceed with the creation of the directory.

 gnomeos/gnomeos-install.sh |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/gnomeos/gnomeos-install.sh b/gnomeos/gnomeos-install.sh
index a0ff854..d0d3cff 100755
--- a/gnomeos/gnomeos-install.sh
+++ b/gnomeos/gnomeos-install.sh
@@ -40,14 +40,14 @@ usage () {
 ARCH=i686
 BRANCH_PREFIX="gnomeos-3.4-${ARCH}-"
 
-cd /ostree
-
 if ! test -d /ostree/repo/objects; then
     mkdir -p /ostree
 
     $SRCDIR/gnomeos-setup.sh /ostree
 fi
 
+cd /ostree
+
 ostree --repo=repo remote add origin http://ostree.gnome.org/repo ${BRANCH_PREFIX}{runtime,devel}
 ostree-pull --repo=repo origin
 for branch in runtime devel; do



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