Skip to content

Commit

Permalink
Merge branch 'docker-provider' of github.com:Varying-Vagrant-Vagrants…
Browse files Browse the repository at this point in the history
…/VVV into docker-provider
  • Loading branch information
tomjn committed Jun 29, 2023
2 parents abea1f5 + bd53f8f commit 07f1111
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions provision/provision-helpers.sh
Original file line number Diff line number Diff line change
Expand Up @@ -663,3 +663,14 @@ function vvv_update_guest_hosts() {
}

export -f vvv_update_guest_hosts

function vvv_safe_sed() {
local expression="${1}"
local file="${2}"
local tempfile
tempfile=$(mktemp /tmp/safe-sed.XXXXXX)
/usr/bin/sed "${expression}" "${file}" > "${tempfile}"
cat "${tempfile}" > "${file}"
rm "${tempfile}"
}
export -f vvv_safe_sed

0 comments on commit 07f1111

Please sign in to comment.