Browse Source

Check for webpack failure

Bob Mottram 7 years ago
parent
commit
f4946f0b15
1 changed files with 9 additions and 5 deletions
  1. 9
    5
      src/freedombone-app-peertube

+ 9
- 5
src/freedombone-app-peertube View File

@@ -641,23 +641,27 @@ function mesh_install_peertube {
641 641
 #!/bin/bash
642 642
 cd $PEERTUBE_DIR
643 643
 npm install --arch=$NPM_ARCH -g yarn
644
-if [ ! "$?" = "0" ]; then
644
+if [ ! "\$?" = "0" ]; then
645 645
     echo $'PeerTube Failed to install yarn'
646 646
     exit 79353234
647 647
 fi
648
-yarn add -D webpack --network-concurrency 1
648
+yarn add -D webpack
649
+if [ ! "\$?" = "0" ]; then
650
+    echo $'PeerTube failed to add webpack'
651
+    exit 67342823
652
+fi
649 653
 yarn install --ignore-optional
650
-if [ ! "$?" = "0" ]; then
654
+if [ ! "\$?" = "0" ]; then
651 655
     echo $'PeerTube failed to run yarn install'
652 656
     exit 63754235
653 657
 fi
654 658
 npm install --arch=$NPM_ARCH --no-optional
655
-if [ ! "$?" = "0" ]; then
659
+if [ ! "\$?" = "0" ]; then
656 660
     echo $'PeerTube failed to install peertube'
657 661
     exit 7835243
658 662
 fi
659 663
 npm run build --arch=$NPM_ARCH --no-optional
660
-if [ ! "$?" = "0" ]; then
664
+if [ ! "\$?" = "0" ]; then
661 665
     echo $'PeerTube failed to build peertube'
662 666
     exit 5293593
663 667
 fi