-
-
Notifications
You must be signed in to change notification settings - Fork 1
/
install.sh
40 lines (33 loc) · 622 Bytes
/
install.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
#!/bin/bash
# 1) Check required software available: php, git, composer, docker:
INSTALLED_DOCKER=0
INSTALLED_COMPOSER=0
INSTALLED_PHP=0
INSTALLED_GIT=0
if [ "$(command -v docker)" ]
then
INSTALLED_DOCKER=1
fi
if [ "$(command -v composer)" ]
then
INSTALLED_COMPOSER=1
fi
if [ "$(command -v php)" ]
then
INSTALLED_PHP=1
fi
if [ "$(command -v git)" ]
then
INSTALLED_GIT=1
fi
if [ ]
case "$OSTYPE" in
linux*)
;;
darwin*)
;;
msys*)
esac
#Prefer to do everything through docker if available, but give option to user
#Add composer bin directory to PATH if not already
#Global composer install