Explorar el Código

Check that patchwork directory gets created

Bob Mottram hace 7 años
padre
commit
0f2fb846b3
Se han modificado 1 ficheros con 3 adiciones y 6 borrados
  1. 3
    6
      src/freedombone-image-customise

+ 3
- 6
src/freedombone-image-customise Ver fichero

568
     get_npm_arch
568
     get_npm_arch
569
 
569
 
570
     git clone $PATCHWORK_REPO $rootdir/etc/patchwork
570
     git clone $PATCHWORK_REPO $rootdir/etc/patchwork
571
+    if [ ! -d $rootdir/etc/patchwork ]; then
572
+        exit 7823520
573
+    fi
571
     cd $rootdir/etc/patchwork
574
     cd $rootdir/etc/patchwork
572
     git checkout $PATCHWORK_COMMIT -b $PATCHWORK_COMMIT
575
     git checkout $PATCHWORK_COMMIT -b $PATCHWORK_COMMIT
573
 
576
 
581
 EOF
584
 EOF
582
     chroot "$rootdir" /bin/chmod +x /usr/bin/install_patchwork
585
     chroot "$rootdir" /bin/chmod +x /usr/bin/install_patchwork
583
     chroot "$rootdir" /usr/bin/install_patchwork
586
     chroot "$rootdir" /usr/bin/install_patchwork
584
-    if [ ! -f /usr/bin/patchwork ]; then
585
-        if [ ! -f /usr/local/bin/patchwork ]; then
586
-            echo $'Unable to install SSB Patchwork peer'
587
-            exit 783524
588
-        fi
589
-    fi
590
     rm $rootdir/usr/bin/install_patchwork
587
     rm $rootdir/usr/bin/install_patchwork
591
 
588
 
592
     echo '#!/bin/bash' > $rootdir/usr/bin/start_patchwork
589
     echo '#!/bin/bash' > $rootdir/usr/bin/start_patchwork