forked from vergnet/application-amicale
Fixed install script errors
This commit is contained in:
parent
eb9bf26baa
commit
04d93fcf83
1 changed files with 26 additions and 25 deletions
51
install.sh
51
install.sh
|
@ -2,31 +2,6 @@
|
||||||
|
|
||||||
base_dir=$(pwd)
|
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 {
|
function ios_install {
|
||||||
cd "$base_dir"/ios && pod install
|
cd "$base_dir"/ios && pod install
|
||||||
}
|
}
|
||||||
|
@ -76,5 +51,31 @@ function node_install {
|
||||||
./clear-node-cache.sh
|
./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
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue