mirror of
https://github.com/laravel/valet.git
synced 2026-02-07 17:10:05 +01:00
18 lines
643 B
Bash
18 lines
643 B
Bash
#!/usr/bin/env bash
|
|
|
|
# Remove existing Valet directory
|
|
rm -rf $HOME/.valet-cli
|
|
|
|
# Download and unpack the latest Valet release
|
|
mkdir $HOME/.valet-cli
|
|
echo "Downloading latest release of Valet..."
|
|
wget https://github.com/laravel/valet/archive/master.tar.gz -O $HOME/.valet-cli/valet.tar.gz > /dev/null 2>&1
|
|
tar xvzf $HOME/.valet-cli/valet.tar.gz -C $HOME/.valet-cli --strip 1 > /dev/null 2>&1
|
|
|
|
# Install Valet's Composer dependencies
|
|
echo "Installing Valet's Composer dependencies..."
|
|
/usr/local/bin/php /usr/local/bin/composer install -d $HOME/.valet-cli > /dev/null 2>&1
|
|
|
|
# Run the Valet installation process
|
|
$HOME/.valet-cli/valet --version
|