Skip to content

Commit 6259270

Browse files
committed
Adjust build host setup to try pip or pip3 to install cf-remote
Ticket: ENT-13483 Changelog: none
1 parent 9bbda2a commit 6259270

File tree

1 file changed

+8
-1
lines changed

1 file changed

+8
-1
lines changed

ci/setup-cfengine-build-host.sh

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -114,7 +114,14 @@ if software pipx; then
114114
pipx install cf-remote
115115
export PATH=$HOME/.local/bin:$PATH
116116
elif software python3-pip; then
117-
pip install cf-remote
117+
if command -v pip; then
118+
pip install cf-remote
119+
elif command -v pip3; then
120+
pip3 install cf-remote
121+
else
122+
echo "failure: neither pip nor pip3 seem to be available."
123+
exit 42
124+
fi
118125
fi
119126
export PATH=/usr/local/bin:$PATH # add /usr/local/bin for pip/pipx installed cf-remote
120127

0 commit comments

Comments
 (0)