From 9f42792e6af073adbdca1021e6522ab5d322e46e Mon Sep 17 00:00:00 2001 From: Bob Mottram Date: Mon, 2 Apr 2018 12:23:20 +0100 Subject: [PATCH] Tidying --- src/freedombone-app-peertube | 18 ++++++------------ 1 file changed, 6 insertions(+), 12 deletions(-) diff --git a/src/freedombone-app-peertube b/src/freedombone-app-peertube index 5f0e29e1..28a89ac7 100755 --- a/src/freedombone-app-peertube +++ b/src/freedombone-app-peertube @@ -890,25 +890,21 @@ echo "deb https://dl.yarnpkg.com/debian/ stable main" | sudo tee /etc/apt/source apt-get -y update apt-get -yq install yarn -#npm install --arch=$NPM_ARCH -g yarn@1.5.1 -#if [ ! "\$?" = "0" ]; then +#if ! npm install --arch=$NPM_ARCH -g yarn@1.5.1; then # echo $'PeerTube Failed to install yarn' # exit 79353234 #fi -#npm install --arch=$NPM_ARCH webpack@3.10.0 --no-optional -#if [ ! "\$?" = "0" ]; then +#if ! npm install --arch=$NPM_ARCH webpack@3.10.0 --no-optional; then # echo $'PeerTube failed to install webpack' # exit 68386353 #fi yarn install yarn run build:prod -yarn add -D webpack -if [ ! "\$?" = "0" ]; then +if ! yarn add -D webpack; then echo $'PeerTube failed to add webpack' exit 67342823 fi -yarn install --ignore-optional -if [ ! "\$?" = "0" ]; then +if ! yarn install --ignore-optional; then echo $'PeerTube failed to run yarn install' exit 63754235 fi @@ -918,8 +914,7 @@ if ! npm install --arch=$NPM_ARCH -g npm@4; then exit 3476835 fi cp /root/.npm-global/bin/npm /usr/local/bin/npm -npm install --arch=$NPM_ARCH -if [ ! "\$?" = "0" ]; then +if ! npm install --arch=$NPM_ARCH; then echo $'PeerTube failed to install peertube' exit 7835243 fi @@ -928,8 +923,7 @@ if ! npm install --arch=$NPM_ARCH -g "npm@${NPM_VERSION}"; then exit 5737583 fi cp /root/.npm-global/bin/npm /usr/local/bin/npm -npm run build --arch=$NPM_ARCH -if [ ! "\$?" = "0" ]; then +if ! npm run build --arch=$NPM_ARCH; then echo $'PeerTube failed to build peertube' exit 5293593 fi