Skip to content

Commit 28a1b75

Browse files
author
Greg Bowler
committed
Merge remote-tracking branch 'origin/master'
2 parents 2ab2154 + 5aa3fa8 commit 28a1b75

1 file changed

Lines changed: 40 additions & 0 deletions

File tree

install.sh

Lines changed: 40 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,40 @@
1+
#!/bin/bash
2+
# 1) Check required software available: php, git, composer, docker:
3+
INSTALLED_DOCKER=0
4+
INSTALLED_COMPOSER=0
5+
INSTALLED_PHP=0
6+
INSTALLED_GIT=0
7+
8+
if [ "$(command -v docker)" ]
9+
then
10+
INSTALLED_DOCKER=1
11+
fi
12+
13+
if [ "$(command -v composer)" ]
14+
then
15+
INSTALLED_COMPOSER=1
16+
fi
17+
18+
if [ "$(command -v php)" ]
19+
then
20+
INSTALLED_PHP=1
21+
fi
22+
23+
if [ "$(command -v git)" ]
24+
then
25+
INSTALLED_GIT=1
26+
fi
27+
28+
if [ ]
29+
30+
case "$OSTYPE" in
31+
linux*)
32+
;;
33+
darwin*)
34+
;;
35+
msys*)
36+
37+
esac
38+
#Prefer to do everything through docker if available, but give option to user
39+
#Add composer bin directory to PATH if not already
40+
#Global composer install

0 commit comments

Comments
 (0)