-
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge remote-tracking branch 'origin/master'
- Loading branch information
Showing
1 changed file
with
40 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,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 |