Merge pull request #4271 from hashicorp/build-system-linux-compat

Build system linux compat
pull/4272/head
Matt Keeler 7 years ago committed by GitHub
commit 40886b52ed
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -32,10 +32,8 @@ CONSUL_PKG_NAME="consul"
if test "$(uname)" == "Darwin" if test "$(uname)" == "Darwin"
then then
SED_EXT="-E" SED_EXT="-E"
alias sed_i="sed -i ''"
else else
SED_EXT="" SED_EXT="-r"
alias sed_i="sed -i"
fi fi
CONSUL_BINARY_TYPE=oss CONSUL_BINARY_TYPE=oss

@ -58,6 +58,17 @@ function debug {
fi fi
} }
function sed_i {
if test "$(uname)" == "Darwin"
then
sed -i '' "$@"
return $?
else
sed -i "$@"
return $?
fi
}
function is_set { function is_set {
# Arguments: # Arguments:
# $1 - string value to check its truthiness # $1 - string value to check its truthiness

Loading…
Cancel
Save