Skip to content

Commit

Permalink
Merge remote-tracking branch 'origin/master'
Browse files Browse the repository at this point in the history
  • Loading branch information
g105b committed Nov 11, 2019
2 parents 2ab2154 + 5aa3fa8 commit 28a1b75
Showing 1 changed file with 40 additions and 0 deletions.
40 changes: 40 additions & 0 deletions install.sh
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

0 comments on commit 28a1b75

Please sign in to comment.