#!/bin/bash
set -eu -o pipefail

echo 'Install OCI CLI'
readonly IMAGE_NAME='shakiyam/oci-cli'
if [[ $(command -v docker) ]]; then
  sudo docker pull $IMAGE_NAME
elif [[ $(command -v podman) ]]; then
  podman pull $IMAGE_NAME
else
  echo -e "\033[36mdocker or podman not found\033[0m"; exit 1;
fi
curl -L# https://raw.githubusercontent.com/shakiyam/oci-cli-docker/master/oci \
  | sudo tee /usr/local/bin/oci >/dev/null
sudo chmod +x /usr/local/bin/oci

#!/bin/bash
set -eu -o pipefail

echo 'Install OCI CLI'
readonly IMAGE_NAME='shakiyam/oci-cli'
[[ $(command -v docker) ]] || { echo -e "\033[36mdocker not found\033[0m"; exit 1; }
sudo docker pull $IMAGE_NAME
curl -L# https://raw.githubusercontent.com/shakiyam/oci-cli-docker/master/oci \
  | sudo tee /usr/local/bin/oci >/dev/null
sudo chmod +x /usr/local/bin/oci

Remove the code for podman because shakiyam/oci-cli does not work with podman
Remove the code for podman because shakiyam/oci-cli does not work with podman
