Skip to content

Commit 00530b5

Browse files
author
Hans Höchtl
authored
Merge pull request #90 from cezarpopa/fix/update-create-project-script
Update new Symfony project command
2 parents f6b5446 + c36ef29 commit 00530b5

File tree

1 file changed

+7
-3
lines changed

1 file changed

+7
-3
lines changed

bin/create-project.sh

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -25,9 +25,13 @@ case "$1" in
2525
## SYMFONY
2626
###################################
2727
"symfony")
28-
curl -LsS http://symfony.com/installer > /tmp/symfony.$$.phar
29-
execInDir "$CODE_DIR" "php /tmp/symfony.$$.phar new '$CODE_DIR'"
30-
rm -f -- /tmp/symfony.$$.phar
28+
if command -v symfony >/dev/null 2>&1; then
29+
execInDir "$CODE_DIR" "symfony new '$CODE_DIR'"
30+
else
31+
wget https://get.symfony.com/cli/installer -O - | bash
32+
export PATH="$HOME/.symfony/bin:$PATH"
33+
execInDir "$CODE_DIR" "symfony new '$CODE_DIR'"
34+
fi
3135
;;
3236

3337
###################################

0 commit comments

Comments
 (0)