Skip to content

Commit 148c129

Browse files
committed
fix: add check scripts for skopeo / podman in get-pcr.sh
Signed-off-by: Chris Butler <chris.butler@redhat.com>
1 parent 3bba8d3 commit 148c129

1 file changed

Lines changed: 12 additions & 0 deletions

File tree

scripts/get-pcr.sh

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,18 @@ if ! command -v yq &> /dev/null; then
2929
exit 1
3030
fi
3131

32+
if ! command -v skopeo &> /dev/null; then
33+
echo "ERROR: skopeo is required but not installed"
34+
echo "Please install skopeo: https://github.com/containers/skopeo/blob/main/install.md"
35+
exit 1
36+
fi
37+
38+
if ! command -v podman &> /dev/null; then
39+
echo "ERROR: podman is required but not installed"
40+
echo "Please install podman: https://podman.io/docs/installation"
41+
exit 1
42+
fi
43+
3244
# 3. Check values-global.yaml exists
3345
if [ ! -f "values-global.yaml" ]; then
3446
echo "ERROR: values-global.yaml not found in current directory"

0 commit comments

Comments
 (0)