Last active
May 10, 2017 04:34
-
-
Save senki/febee38475c91210348d888ac87b0300 to your computer and use it in GitHub Desktop.
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
#!/bin/bash | |
if [[ $# -lt 1 ]]; then | |
echo "No argument, exiting" | |
fi | |
laravel new "$@" | |
cd "$1" || exit | |
VERSION=$(php artisan --version) | |
git init | |
git add --all | |
git commit -m "Install $VERSION" | |
git remote add -t master --no-tags upstream https://github.com/laravel/laravel.git | |
git fetch upstream |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment