Fixed install script errors

This commit is contained in:
Arnaud Vergnet 2020-07-14 17:22:24 +02:00
parent eb9bf26baa
commit 04d93fcf83

View file

@ -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