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:
@@ -64,7 +64,7 @@
|
|||||||
}
|
}
|
||||||
|
|
||||||
if ($tld === null) {
|
if ($tld === null) {
|
||||||
return info('Valet is configured to serve for TLD: .'.Configuration::read()['tld']);
|
return info(Configuration::read()['tld']);
|
||||||
}
|
}
|
||||||
|
|
||||||
DnsMasq::updateTld(
|
DnsMasq::updateTld(
|
||||||
|
|||||||
4
valet
4
valet
@@ -32,7 +32,7 @@ fi
|
|||||||
if [[ "$1" = "share" ]]
|
if [[ "$1" = "share" ]]
|
||||||
then
|
then
|
||||||
HOST="${PWD##*/}"
|
HOST="${PWD##*/}"
|
||||||
DOMAIN=$(php "$DIR/cli/valet.php" domain)
|
TLD=$(php "$DIR/cli/valet.php" tld)
|
||||||
|
|
||||||
for linkname in ~/.config/valet/Sites/*; do
|
for linkname in ~/.config/valet/Sites/*; do
|
||||||
if [[ "$(readlink $linkname)" = "$PWD" ]]
|
if [[ "$(readlink $linkname)" = "$PWD" ]]
|
||||||
@@ -43,7 +43,7 @@ then
|
|||||||
|
|
||||||
# Fetch Ngrok URL In Background...
|
# Fetch Ngrok URL In Background...
|
||||||
bash "$DIR/cli/scripts/fetch-share-url.sh" &
|
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
|
exit
|
||||||
|
|
||||||
# Finally, for every other command we will just proxy into the PHP tool
|
# Finally, for every other command we will just proxy into the PHP tool
|
||||||
|
|||||||
Reference in New Issue
Block a user