Skip to content

Commit

Permalink
Testing: Replace which with command -v #6303
Browse files Browse the repository at this point in the history
The `which` utility is an external utility that has to be installed as
an RPM package. We could include it during the container creation or we
could use the equivalent `command -v` builtin from the Bash (the default
shell).
  • Loading branch information
dchristidis authored and bari12 committed Sep 26, 2023
1 parent c3067b4 commit a6edf57
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tools/test/install_script.sh
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@

set -eo pipefail

echo "* Using $(which python) $(python --version 2>&1) and $(which pip) $(pip --version 2>&1)"
echo "* Using $(command -v python) $(python --version 2>&1) and $(command -v pip) $(pip --version 2>&1)"

if [ "$SUITE" == "client" -o "$SUITE" == "client_syntax" ]; then
cd /usr/local/src/rucio
Expand Down

0 comments on commit a6edf57

Please sign in to comment.