Skip to content
This repository has been archived by the owner on Jun 30, 2020. It is now read-only.

Switch maybe_vagrant_halt to use cURL #205

Merged
merged 1 commit into from
Dec 13, 2015
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion vv
Original file line number Diff line number Diff line change
Expand Up @@ -1117,7 +1117,7 @@ creation_success_message() {
vagrant_maybe_halt() {
# Test if VVV is running, This is hardcoded with a VVV default site, and should be switched to something a bit more robust
vvv_running="true"
/usr/bin/wget "http://local.wordpress.dev/wp-login.php" --timeout 5 -O - 2>/dev/null | grep "login" || vvv_running="false"
/usr/bin/curl --silent --head "http://local.wordpress.dev/wp-login.php" | head -n 1 | grep "HTTP/1.[01] [23].." > /dev/null || vvv_running="false"
if [[ "$vvv_running" = "true" ]]; then
info "Running \`vagrant halt\`"
vagrant halt
Expand Down