mirror of
https://github.com/status-im/consul.git
synced 2025-02-02 00:46:43 +00:00
Try a different way of doing x-platform in place sed
This commit is contained in:
parent
8464046385
commit
0a195fe88c
@ -32,10 +32,8 @@ CONSUL_PKG_NAME="consul"
|
||||
if test "$(uname)" == "Darwin"
|
||||
then
|
||||
SED_EXT="-E"
|
||||
alias sed_i="sed -i ''"
|
||||
else
|
||||
SED_EXT=""
|
||||
alias sed_i="sed -i"
|
||||
fi
|
||||
|
||||
CONSUL_BINARY_TYPE=oss
|
||||
|
@ -58,6 +58,17 @@ function debug {
|
||||
fi
|
||||
}
|
||||
|
||||
function sed_i {
|
||||
if test "$(uname)" == "Darwin"
|
||||
then
|
||||
sed -i '' "$@"
|
||||
return $?
|
||||
else
|
||||
sed -i "$@"
|
||||
return $?
|
||||
fi
|
||||
}
|
||||
|
||||
function is_set {
|
||||
# Arguments:
|
||||
# $1 - string value to check its truthiness
|
||||
|
Loading…
x
Reference in New Issue
Block a user