Skip to content

Commit 27865aa

Browse files
committed
Avoid OSX problem parsing xargs, 'illegal option -- -' error.
1 parent 1ee5089 commit 27865aa

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

run_operator_locally.sh

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,7 @@ function clean_up(){
5656
fi
5757

5858
if [[ -e "$PATH_TO_LOCAL_OPERATOR_MANIFEST" ]]; then
59-
rm --verbose "$PATH_TO_LOCAL_OPERATOR_MANIFEST"
59+
rm -v "$PATH_TO_LOCAL_OPERATOR_MANIFEST"
6060
fi
6161

6262
# the kubectl process does the port-forwarding between operator and local ports
@@ -70,7 +70,7 @@ function clean_up(){
7070
if kill "$pid" > /dev/null 2>&1; then
7171
echo "Kill the kubectl process responsible for port forwarding for minikube so that we can re-use the same ports for forwarding later..."
7272
fi
73-
rm --verbose "$PATH_TO_PORT_FORWARED_KUBECTL_PID"
73+
rm -v "$PATH_TO_PORT_FORWARED_KUBECTL_PID"
7474

7575
fi
7676
}
@@ -121,7 +121,7 @@ function deploy_self_built_image() {
121121
# update the tag in the postgres operator conf
122122
# since the image with this tag already exists on the machine,
123123
# docker should not attempt to fetch it from the registry due to imagePullPolicy
124-
sed --expression "s/\(image\:.*\:\).*$/\1$TAG/; s/smoke-tested-//" manifests/postgres-operator.yaml > "$PATH_TO_LOCAL_OPERATOR_MANIFEST"
124+
sed -e "s/\(image\:.*\:\).*$/\1$TAG/; s/smoke-tested-//" manifests/postgres-operator.yaml > "$PATH_TO_LOCAL_OPERATOR_MANIFEST"
125125

126126
retry "kubectl create -f \"$PATH_TO_LOCAL_OPERATOR_MANIFEST\"" "attempt to create $PATH_TO_LOCAL_OPERATOR_MANIFEST resource"
127127
}

0 commit comments

Comments
 (0)