diff --git a/packages/dashboard-backend/src/devworkspaceClient/services/podmanApi.ts b/packages/dashboard-backend/src/devworkspaceClient/services/podmanApi.ts index 0b3b6d17db..0af05ce528 100644 --- a/packages/dashboard-backend/src/devworkspaceClient/services/podmanApi.ts +++ b/packages/dashboard-backend/src/devworkspaceClient/services/podmanApi.ts @@ -63,6 +63,7 @@ export class PodmanApiService implements IPodmanApi { 'sh', '-c', ` + command -v oc >/dev/null 2>&1 && [[ -n "$HOME" ]] || { echo "'oc' is not installed or HOME is not set"; exit 1; } export CERTS_SRC="/var/run/secrets/kubernetes.io/serviceaccount" export CERTS_DEST="$HOME/.config/containers/certs.d/image-registry.openshift-image-registry.svc:5000" mkdir -p "$CERTS_DEST"