Skip to content
This repository has been archived by the owner on Jul 17, 2023. It is now read-only.

OCI: shell conditional #70

Merged
merged 2 commits into from
May 18, 2021
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion oci/oci.build_defs
Original file line number Diff line number Diff line change
Expand Up @@ -193,7 +193,7 @@ def container_image(

# run_rule, runs the image using podman or docker if podman not found.
cmd = f'''
if [ ! $(command -v {CONFIG.PODMAN_TOOL} &> /dev/null) ]; then
if ! command -v {CONFIG.PODMAN_TOOL} &> /dev/null; then
{CONFIG.SKOPEO_TOOL} copy -q {img_loc} "docker-daemon:`cat $SRC`"
docker run -it `cat $SRC` \\\$@
else
Expand Down