gnomeos-install: don't cd into /ostree prematurely
The script will die and not proceed with the creation of the directory.
This commit is contained in:
parent
7442009086
commit
75cd0b8494
|
|
@ -40,14 +40,14 @@ usage () {
|
||||||
ARCH=i686
|
ARCH=i686
|
||||||
BRANCH_PREFIX="gnomeos-3.4-${ARCH}-"
|
BRANCH_PREFIX="gnomeos-3.4-${ARCH}-"
|
||||||
|
|
||||||
cd /ostree
|
|
||||||
|
|
||||||
if ! test -d /ostree/repo/objects; then
|
if ! test -d /ostree/repo/objects; then
|
||||||
mkdir -p /ostree
|
mkdir -p /ostree
|
||||||
|
|
||||||
$SRCDIR/gnomeos-setup.sh /ostree
|
$SRCDIR/gnomeos-setup.sh /ostree
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
cd /ostree
|
||||||
|
|
||||||
ostree --repo=repo remote add origin http://ostree.gnome.org/repo ${BRANCH_PREFIX}{runtime,devel}
|
ostree --repo=repo remote add origin http://ostree.gnome.org/repo ${BRANCH_PREFIX}{runtime,devel}
|
||||||
ostree-pull --repo=repo origin
|
ostree-pull --repo=repo origin
|
||||||
for branch in runtime devel; do
|
for branch in runtime devel; do
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue