yoctorc: updated
authorStephane Desneux <stephane.desneux@eurogiciel.fr>
Fri, 5 Apr 2013 17:43:14 +0000 (19:43 +0200)
committerStephane Desneux <stephane.desneux@eurogiciel.fr>
Fri, 5 Apr 2013 17:43:14 +0000 (19:43 +0200)
yoctorc

diff --git a/yoctorc b/yoctorc
index c59e9b4..58e9ffa 100644 (file)
--- a/yoctorc
+++ b/yoctorc
@@ -20,7 +20,11 @@ fi
 function yinit () {
     cd $OEDIR
     YOCTO_BUILDDIR=$OEDIR/${1:-build}
-    [[ ! -d $YOCTO_BUILDDIR ]] && init=yes
+    init=no
+    if [[ ! -d $YOCTO_BUILDDIR ]]; then 
+       init=yes
+    fi
+
     . ./oe-init-build-env $1 >/dev/null 2>&1
     cd $YOCTO_BUILDDIR