File tree Expand file tree Collapse file tree 1 file changed +19
-5
lines changed Expand file tree Collapse file tree 1 file changed +19
-5
lines changed Original file line number Diff line number Diff line change @@ -10,10 +10,24 @@ if [ -z $VERSION ]; then
1010 exit 1
1111fi
1212
13+ function replaceInFile {
14+ local EXPR=$1
15+ local FILE=$2
16+ case $( uname) in
17+ Darwin)
18+ sed -e " ${EXPR} " -i " " ${FILE}
19+ ;;
20+ * )
21+ sed -i --expression " ${EXPR} " ${FILE}
22+ ;;
23+ esac
24+ }
25+
26+
1327f=README.md
14- sed -e " s@^kubectl apply -f https://raw.githubusercontent.com/arangodb/kube-arangodb/.*/manifests/arango-deployment.yaml\$ @kubectl apply -f https://raw.githubusercontent.com/arangodb/kube-arangodb/${VERSION} /manifests/arango-deployment.yaml@g" -i " " $f
15- sed -e " s@^kubectl apply -f https://raw.githubusercontent.com/arangodb/kube-arangodb/.*/manifests/arango-deployment-replication.yaml\$ @kubectl apply -f https://raw.githubusercontent.com/arangodb/kube-arangodb/${VERSION} /manifests/arango-deployment-replication.yaml@g" -i " " $f
16- sed -e " s@^kubectl apply -f https://raw.githubusercontent.com/arangodb/kube-arangodb/.*/manifests/arango-storage.yaml\$ @kubectl apply -f https://raw.githubusercontent.com/arangodb/kube-arangodb/${VERSION} /manifests/arango-storage.yaml@g" -i " " $f
28+ replaceInFile " s@^kubectl apply -f https://raw.githubusercontent.com/arangodb/kube-arangodb/.*/manifests/arango-deployment.yaml\$ @kubectl apply -f https://raw.githubusercontent.com/arangodb/kube-arangodb/${VERSION} /manifests/arango-deployment.yaml@g" ${f}
29+ replaceInFile " s@^kubectl apply -f https://raw.githubusercontent.com/arangodb/kube-arangodb/.*/manifests/arango-deployment-replication.yaml\$ @kubectl apply -f https://raw.githubusercontent.com/arangodb/kube-arangodb/${VERSION} /manifests/arango-deployment-replication.yaml@g" ${f}
30+ replaceInFile " s@^kubectl apply -f https://raw.githubusercontent.com/arangodb/kube-arangodb/.*/manifests/arango-storage.yaml\$ @kubectl apply -f https://raw.githubusercontent.com/arangodb/kube-arangodb/${VERSION} /manifests/arango-storage.yaml@g" ${f}
1731
18- sed -e " s@^helm install https://github.com/arangodb/kube-arangodb/releases/download/.*/kube-arangodb.tgz\$ @helm install https://github.com/arangodb/kube-arangodb/releases/download/${VERSION} /kube-arangodb.tgz@g" -i " " $f
19- sed -e " s@^helm install https://github.com/arangodb/kube-arangodb/releases/download/.*/kube-arangodb-storage.tgz\$ @helm install https://github.com/arangodb/kube-arangodb/releases/download/${VERSION} /kube-arangodb-storage.tgz@g" -i " " $f
32+ replaceInFile " s@^helm install https://github.com/arangodb/kube-arangodb/releases/download/.*/kube-arangodb.tgz\$ @helm install https://github.com/arangodb/kube-arangodb/releases/download/${VERSION} /kube-arangodb.tgz@g" ${f}
33+ replaceInFile " s@^helm install https://github.com/arangodb/kube-arangodb/releases/download/.*/kube-arangodb-storage.tgz\$ @helm install https://github.com/arangodb/kube-arangodb/releases/download/${VERSION} /kube-arangodb-storage.tgz@g" ${f}
You can’t perform that action at this time.
0 commit comments