Browse Source

Fixed install script errors

Arnaud Vergnet 1 year ago
parent
commit
04d93fcf83
1 changed files with 26 additions and 25 deletions
  1. 26
    25
      install.sh

+ 26
- 25
install.sh View File

@@ -2,31 +2,6 @@
2 2
 
3 3
 base_dir=$(pwd)
4 4
 
5
-
6
-if [[ $1 == "--android" ]]
7
-then
8
-  echo "Installing for Android only"
9
-  node_install
10
-  android_install
11
-elif [[ $1 == "--ios" ]]
12
-then
13
-  echo "Installing for iOS only"
14
-  node_install
15
-  ios_install
16
-elif [[ $1 == "--all" ]]
17
-then
18
-  echo "Installing for Android and iOS"
19
-  node_install
20
-  android_install
21
-  ios_install
22
-else
23
-  echo "Usage: ./install.sh [mode]"
24
-  echo "    [mode]: --android     Installs only Android dependencies"
25
-  echo "    [mode]: --ios         Installs only iOS dependencies"
26
-  echo "    [mode]: --all         Installs Android and iOS dependencies"
27
-fi
28
-exit
29
-
30 5
 function ios_install {
31 6
   cd "$base_dir"/ios && pod install
32 7
 }
@@ -76,5 +51,31 @@ function node_install {
76 51
   ./clear-node-cache.sh
77 52
 }
78 53
 
54
+if [[ $1 == "--android" ]]
55
+then
56
+  echo "Installing for Android only"
57
+  node_install
58
+  android_install
59
+elif [[ $1 == "--ios" ]]
60
+then
61
+  echo "Installing for iOS only"
62
+  node_install
63
+  ios_install
64
+elif [[ $1 == "--all" ]]
65
+then
66
+  echo "Installing for Android and iOS"
67
+  node_install
68
+  android_install
69
+  ios_install
70
+else
71
+  echo "Usage: ./install.sh [mode]"
72
+  echo "    [mode]: --android     Installs only Android dependencies"
73
+  echo "    [mode]: --ios         Installs only iOS dependencies"
74
+  echo "    [mode]: --all         Installs Android and iOS dependencies"
75
+fi
76
+exit
77
+
78
+
79
+
79 80
 
80 81
 

Loading…
Cancel
Save