We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents a9d0b6a + 81d149c commit 0946800Copy full SHA for 0946800
scripts/.util/tools.sh
@@ -148,10 +148,17 @@ function util::tools::cf::install() {
148
exit 1
149
esac
150
151
+# Check if cf is already available in PATH (e.g., from system/Docker image)
152
+ if command -v cf &> /dev/null; then
153
+ util::print::title "CF CLI already installed (using system version)"
154
+ cf version
155
+ return 0
156
+ fi
157
+
158
if [[ ! -f "${dir}/cf" ]]; then
159
util::print::title "Installing cf"
160
- curl "https://packages.cloudfoundry.org/stable?release=${os}-binary&version=6.49.0&source=github-rel" \
161
+ curl "https://packages.cloudfoundry.org/stable?release=${os}-binary&source=github-rel" \
162
--silent \
163
--location \
164
--output /tmp/cf.tar.gz
0 commit comments