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

Remove extra message text from tld command output, for valet share cmd

The `valet share` command relies on the `tld` command outputting only the TLD and not a status message.
This removes the status message that was added with the recent tld update.
This commit is contained in:
Chris Brown
2018-09-13 20:22:11 -04:00
parent 7eb1aec410
commit 16c58aa9da
2 changed files with 3 additions and 3 deletions

4
valet
View File

@@ -32,7 +32,7 @@ fi
if [[ "$1" = "share" ]]
then
HOST="${PWD##*/}"
DOMAIN=$(php "$DIR/cli/valet.php" domain)
TLD=$(php "$DIR/cli/valet.php" tld)
for linkname in ~/.config/valet/Sites/*; do
if [[ "$(readlink $linkname)" = "$PWD" ]]
@@ -43,7 +43,7 @@ then
# Fetch Ngrok URL In Background...
bash "$DIR/cli/scripts/fetch-share-url.sh" &
sudo -u $(logname) "$DIR/bin/ngrok" http "$HOST.$DOMAIN:80" -host-header=rewrite ${*:2}
sudo -u $(logname) "$DIR/bin/ngrok" http "$HOST.$TLD:80" -host-header=rewrite ${*:2}
exit
# Finally, for every other command we will just proxy into the PHP tool