criu/scripts/ci/prepare-for-fedora-rawhide.sh
Kir Kolyshkin 07ad2473f2 Use command -v instead of which
Unlike "which", which is a separate executable not always installed by
default, "command -v" is a shell built-in available at least for bash,
dash, and busybox shell.

Unlike "which", "command -v" is also easier to grep for, and it is
already used in a few places here.

Inspired by commit 57251d811.

Signed-off-by: Kir Kolyshkin <kolyshkin@gmail.com>
2025-11-05 15:41:34 -08:00

21 lines
347 B
Bash
Executable file

#!/bin/bash
set -e -x
contrib/dependencies/dnf-packages.sh
dnf install -y \
diffutils \
e2fsprogs \
findutils \
gawk \
gzip \
kmod \
libselinux-utils \
procps-ng \
python3-pip \
python-unversioned-command \
redhat-rpm-config \
sudo \
tar
# /tmp is no longer 755 in the rawhide container image and breaks CI - fix it
chmod 1777 /tmp