Skip to content

Commit 0a6b851

Browse files
committed
cleanup: use $OPENSHIFT_INSTALLER path
The ocp directory doesn't always have the binary present. For example, the cleanup commands will fail when openshift-installer is built from git.
1 parent 49b7447 commit 0a6b851

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

ocp_cleanup.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,8 +13,8 @@ if sudo systemctl is-active fix_certs.timer; then
1313
fi
1414

1515
if [ -d ${OCP_DIR} ]; then
16-
${OCP_DIR}/openshift-install --dir ${OCP_DIR} --log-level=debug destroy bootstrap
17-
${OCP_DIR}/openshift-install --dir ${OCP_DIR} --log-level=debug destroy cluster
16+
$OPENSHIFT_INSTALLER --dir ${OCP_DIR} --log-level=debug destroy bootstrap
17+
$OPENSHIFT_INSTALLER --dir ${OCP_DIR} --log-level=debug destroy cluster
1818
rm -rf ${OCP_DIR}
1919
fi
2020

0 commit comments

Comments
 (0)