1
0
mirror of https://github.com/laravel/valet.git synced 2026-02-05 00:20:08 +01:00

tweaking scripts

This commit is contained in:
Taylor Otwell
2016-05-10 14:03:38 -05:00
parent dfc8e6eaea
commit fbe5c8b04c
2 changed files with 4 additions and 1 deletions

View File

@@ -9,7 +9,7 @@ wget https://github.com/laravel/valet/archive/master.tar.gz -O $HOME/.valet-cli/
tar xvzf $HOME/.valet-cli/valet.tar.gz -C $HOME/.valet-cli --strip 1 > /dev/null 2>&1
# Install Valet's Composer dependencies
/usr/local/bin/php composer install -d $HOME/.valet-cli
/usr/local/bin/php /usr/local/bin/composer install -d $HOME/.valet-cli
# Run the Valet installation process
$HOME/.valet-cli/valet --version

3
valet
View File

@@ -23,6 +23,9 @@ fi
if [[ "$1" = "install" ]] || [[ "$1" = "domain" ]] || [[ "$1" = "start" ]] || [[ "$1" = "restart" ]] || [[ "$1" = "stop" ]] || [[ "$1" = "uninstall" ]]
then
sudo php "$DIR/cli/valet.php" "$@"
elif [[ "$1" = "update" ]]
then
bash <(curl -s https://raw.githubusercontent.com/laravel/valet/master/update.sh)
elif [[ "$1" = "share" ]]
then
HOST="${PWD##*/}"