From 04d93fcf8313826c1ce88c92d2cc1673448a966f Mon Sep 17 00:00:00 2001 From: Arnaud Vergnet Date: Tue, 14 Jul 2020 17:22:24 +0200 Subject: [PATCH] Fixed install script errors --- install.sh | 51 ++++++++++++++++++++++++++------------------------- 1 file changed, 26 insertions(+), 25 deletions(-) diff --git a/install.sh b/install.sh index 808d688..3ff53eb 100755 --- a/install.sh +++ b/install.sh @@ -2,31 +2,6 @@ base_dir=$(pwd) - -if [[ $1 == "--android" ]] -then - echo "Installing for Android only" - node_install - android_install -elif [[ $1 == "--ios" ]] -then - echo "Installing for iOS only" - node_install - ios_install -elif [[ $1 == "--all" ]] -then - echo "Installing for Android and iOS" - node_install - android_install - ios_install -else - echo "Usage: ./install.sh [mode]" - echo " [mode]: --android Installs only Android dependencies" - echo " [mode]: --ios Installs only iOS dependencies" - echo " [mode]: --all Installs Android and iOS dependencies" -fi -exit - function ios_install { cd "$base_dir"/ios && pod install } @@ -76,5 +51,31 @@ function node_install { ./clear-node-cache.sh } +if [[ $1 == "--android" ]] +then + echo "Installing for Android only" + node_install + android_install +elif [[ $1 == "--ios" ]] +then + echo "Installing for iOS only" + node_install + ios_install +elif [[ $1 == "--all" ]] +then + echo "Installing for Android and iOS" + node_install + android_install + ios_install +else + echo "Usage: ./install.sh [mode]" + echo " [mode]: --android Installs only Android dependencies" + echo " [mode]: --ios Installs only iOS dependencies" + echo " [mode]: --all Installs Android and iOS dependencies" +fi +exit + + +