File tree Expand file tree Collapse file tree 5 files changed +9
-25
lines changed Expand file tree Collapse file tree 5 files changed +9
-25
lines changed Original file line number Diff line number Diff line change @@ -4,6 +4,11 @@ ROOT:=$(CURRENT)
44SED ?= sed
55REALPATH ?= realpath
66
7+ ifeq ($(shell uname) ,Darwin)
8+ SED ?= gsed
9+ REALPATH ?= grealpath
10+ endif
11+
712PROJECT := arangodb_operator
813SCRIPTDIR := $(shell pwd)
914ROOTDIR := $(shell cd $(SCRIPTDIR ) && pwd)
Original file line number Diff line number Diff line change @@ -6,7 +6,7 @@ ArangoDB Kubernetes Operator helps to run ArangoDB deployments
66on Kubernetes clusters.
77
88To get started, follow the Installation instructions below and/or
9- read the [ tutorial] ( https://www.arangodb.com/docs/stable/tutorials -kubernetes.html ) .
9+ read the [ tutorial] ( https://www.arangodb.com/docs/stable/deployment -kubernetes-usage .html ) .
1010
1111## State
1212
Original file line number Diff line number Diff line change 1414function replaceInFile {
1515 local EXPR=$1
1616 local FILE=$2
17- case $( uname) in
18- Darwin)
19- sed -e " ${EXPR} " -i " " ${FILE}
20- ;;
21- * )
22- sed -i --expression " ${EXPR} " ${FILE}
23- ;;
24- esac
17+ sed -i --expression " ${EXPR} " ${FILE}
2518}
2619
2720for f in kube-arangodb kube-arangodb-crd; do
Original file line number Diff line number Diff line change @@ -14,14 +14,7 @@ ARANGODB_VERSION=3.7.10
1414function replaceInFile {
1515 local EXPR=$1
1616 local FILE=$2
17- case $( uname) in
18- Darwin)
19- sed -E -e " ${EXPR} " -i " " ${FILE}
20- ;;
21- * )
22- sed -E -i --expression " ${EXPR} " ${FILE}
23- ;;
24- esac
17+ sed -E -i --expression " ${EXPR} " ${FILE}
2518}
2619
2720FILES=$( find ./examples -type f -name ' *.yaml' )
Original file line number Diff line number Diff line change 1313function replaceInFile {
1414 local EXPR=$1
1515 local FILE=$2
16- case $( uname) in
17- Darwin)
18- sed -e " ${EXPR} " -i " " ${FILE}
19- ;;
20- * )
21- sed -E -i --expression " ${EXPR} " ${FILE}
22- ;;
23- esac
16+ sed -E -i --expression " ${EXPR} " ${FILE}
2417}
2518
2619
You can’t perform that action at this time.
0 commit comments