all: avoid GNU "which" from shell scripts

"which" is a separate package and may not be installed.
Also, shell has a built-in command for the same purpose.
Use that.
This commit is contained in:
Thomas Haller
2020-12-11 11:11:57 +01:00
parent b9d4026f85
commit d07cd5dbf2
9 changed files with 14 additions and 14 deletions

View File

@@ -38,7 +38,7 @@ if ! podman container exists "$PODNAME" ; then
-v "$DIR:/tmp/NetworkManager:Z" \
-w /tmp/NetworkManager \
fedora:33 \
/bin/bash -c 'dnf upgrade -y && dnf install -y git which /usr/bin/clang-format && ./contrib/scripts/nm-code-format.sh -i'
/bin/bash -c 'dnf upgrade -y && dnf install -y git /usr/bin/clang-format && ./contrib/scripts/nm-code-format.sh -i'
exit 0
fi