Skip to content

Commit

Permalink
fix: Adding check for 'oc' and '/home/ibuziuk' which are pre-req for …
Browse files Browse the repository at this point in the history
…'podman login'

Signed-off-by: Ilya Buziuk <[email protected]>
  • Loading branch information
ibuziuk committed Jul 6, 2023
1 parent a8beb13 commit 9f5879b
Showing 1 changed file with 1 addition and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down

0 comments on commit 9f5879b

Please sign in to comment.