1
0
mirror of https://github.com/laravel/valet.git synced 2026-02-07 09:10:03 +01:00

move scripts

This commit is contained in:
Taylor Otwell
2016-05-10 15:06:29 -05:00
parent 6a88aac3fb
commit 6345ee9503
4 changed files with 10 additions and 10 deletions

View File

@@ -2,4 +2,4 @@
DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )"
php $DIR/valet.php fetch-share-url | pbcopy
php $DIR/../valet.php fetch-share-url | pbcopy

View File

@@ -19,14 +19,14 @@ brew install php70
# Install Composer to /usr/local/bin
if [[ ! $(which composer -A) ]]
then
echo "Installing Composer..."
/usr/local/bin/php -r "copy('https://getcomposer.org/installer', 'composer-setup.php');"
/usr/local/bin/php -r "if (hash_file('SHA384', 'composer-setup.php') === '92102166af5abdb03f49ce52a40591073a7b859a86e8ff13338cf7db58a19f7844fbc0bb79b2773bf30791e935dbd938') { echo 'Installer verified'; } else { echo 'Installer corrupt'; unlink('composer-setup.php'); } echo PHP_EOL;" > /dev/null 2>&1
/usr/local/bin/php composer-setup.php > /dev/null 2>&1
/usr/local/bin/php -r "unlink('composer-setup.php');"
echo "Installing Composer..."
/usr/local/bin/php -r "copy('https://getcomposer.org/installer', 'composer-setup.php');"
/usr/local/bin/php -r "if (hash_file('SHA384', 'composer-setup.php') === '92102166af5abdb03f49ce52a40591073a7b859a86e8ff13338cf7db58a19f7844fbc0bb79b2773bf30791e935dbd938') { echo 'Installer verified'; } else { echo 'Installer corrupt'; unlink('composer-setup.php'); } echo PHP_EOL;" > /dev/null 2>&1
/usr/local/bin/php composer-setup.php > /dev/null 2>&1
/usr/local/bin/php -r "unlink('composer-setup.php');"
mv composer.phar /usr/local/bin/composer
chmod +x /usr/local/bin/composer
mv composer.phar /usr/local/bin/composer
chmod +x /usr/local/bin/composer
fi
COMPOSER_PATH=$(which composer)

4
valet
View File

@@ -30,7 +30,7 @@ then
fi
elif [[ "$1" = "update" ]]
then
bash <(curl -s https://raw.githubusercontent.com/laravel/valet/master/update.sh)
bash <(curl -s https://raw.githubusercontent.com/laravel/valet/master/cli/scripts/update.sh)
elif [[ "$1" = "share" ]]
then
HOST="${PWD##*/}"
@@ -47,7 +47,7 @@ then
done
# Fetch Ngrok URL In Background...
bash "$DIR/cli/fetch-share-url.sh" &
bash "$DIR/cli/scripts/fetch-share-url.sh" &
"$DIR/bin/ngrok" http -host-header=rewrite "$HOST.$DOMAIN:80"
else