Skip to content

Commit

Permalink
fix: add dir-conditionals to symfony install
Browse files Browse the repository at this point in the history
  • Loading branch information
seantrane committed Sep 13, 2018
1 parent ea7fed5 commit 7907939
Showing 1 changed file with 3 additions and 5 deletions.
8 changes: 3 additions & 5 deletions symfony/install.sh
Original file line number Diff line number Diff line change
Expand Up @@ -7,11 +7,9 @@

if ! type "symfony" &> /dev/null; then
sh_info "Installing Symfony..."
# mkdir:/usr/local/bin, if it does not exist yet
# using sudo to bypass any issues
sudo mkdir /usr
sudo mkdir /usr/local
sudo mkdir /usr/local/bin
[[ ! -d /usr ]] && sudo mkdir /usr
[[ ! -d /usr/local ]] && sudo mkdir /usr/local
[[ ! -d /usr/local/bin ]] && sudo mkdir /usr/local/bin
sudo curl -LsS https://symfony.com/installer -o /usr/local/bin/symfony
sudo chmod a+x /usr/local/bin/symfony
else
Expand Down

0 comments on commit 7907939

Please sign in to comment.