Bob Mottram 7 yıl önce
ebeveyn
işleme
9f42792e6a
1 değiştirilmiş dosya ile 6 ekleme ve 12 silme
  1. 6
    12
      src/freedombone-app-peertube

+ 6
- 12
src/freedombone-app-peertube Dosyayı Görüntüle

@@ -890,25 +890,21 @@ echo "deb https://dl.yarnpkg.com/debian/ stable main" | sudo tee /etc/apt/source
890 890
 apt-get -y update
891 891
 apt-get -yq install yarn
892 892
 
893
-#npm install --arch=$NPM_ARCH -g yarn@1.5.1
894
-#if [ ! "\$?" = "0" ]; then
893
+#if ! npm install --arch=$NPM_ARCH -g yarn@1.5.1; then
895 894
 #    echo $'PeerTube Failed to install yarn'
896 895
 #    exit 79353234
897 896
 #fi
898
-#npm install --arch=$NPM_ARCH webpack@3.10.0 --no-optional
899
-#if [ ! "\$?" = "0" ]; then
897
+#if ! npm install --arch=$NPM_ARCH webpack@3.10.0 --no-optional; then
900 898
 #    echo $'PeerTube failed to install webpack'
901 899
 #    exit 68386353
902 900
 #fi
903 901
 yarn install
904 902
 yarn run build:prod
905
-yarn add -D webpack
906
-if [ ! "\$?" = "0" ]; then
903
+if ! yarn add -D webpack; then
907 904
     echo $'PeerTube failed to add webpack'
908 905
     exit 67342823
909 906
 fi
910
-yarn install --ignore-optional
911
-if [ ! "\$?" = "0" ]; then
907
+if ! yarn install --ignore-optional; then
912 908
     echo $'PeerTube failed to run yarn install'
913 909
     exit 63754235
914 910
 fi
@@ -918,8 +914,7 @@ if ! npm install --arch=$NPM_ARCH -g npm@4; then
918 914
     exit 3476835
919 915
 fi
920 916
 cp /root/.npm-global/bin/npm /usr/local/bin/npm
921
-npm install --arch=$NPM_ARCH
922
-if [ ! "\$?" = "0" ]; then
917
+if ! npm install --arch=$NPM_ARCH; then
923 918
     echo $'PeerTube failed to install peertube'
924 919
     exit 7835243
925 920
 fi
@@ -928,8 +923,7 @@ if ! npm install --arch=$NPM_ARCH -g "npm@${NPM_VERSION}"; then
928 923
     exit 5737583
929 924
 fi
930 925
 cp /root/.npm-global/bin/npm /usr/local/bin/npm
931
-npm run build --arch=$NPM_ARCH
932
-if [ ! "\$?" = "0" ]; then
926
+if ! npm run build --arch=$NPM_ARCH; then
933 927
     echo $'PeerTube failed to build peertube'
934 928
     exit 5293593
935 929
 fi