From c684111fc169dbb50cb0b7a6a3dd3a2bd8940362 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Pavel=20Mac=C3=ADk?= Date: Wed, 5 Jun 2019 08:53:50 +0200 Subject: [PATCH] Fix install_devconsole for mac. --- hack/install_devconsole/consoledeveloper.sh | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/hack/install_devconsole/consoledeveloper.sh b/hack/install_devconsole/consoledeveloper.sh index 57b902d..b299712 100755 --- a/hack/install_devconsole/consoledeveloper.sh +++ b/hack/install_devconsole/consoledeveloper.sh @@ -1,7 +1,11 @@ #!/bin/bash set +x -cd $(dirname $(readlink -f $0)) +function pathname() { + DIR="${1%/*}" + (cd "$DIR" && echo "$(pwd -P)") +} +cd $(pathname $0) oc apply -f ./yamls/unmanage.yaml oc scale --replicas 0 deployment console-operator --namespace openshift-console-operator