File tree 1 file changed +13
-5
lines changed
1 file changed +13
-5
lines changed Original file line number Diff line number Diff line change @@ -330,6 +330,18 @@ function os::build::place_bins() {
330
330
fi
331
331
done
332
332
333
+ # Link binaries that we want to link (eg. oc->kubectl)
334
+ local suffix=" "
335
+ if [[ $platform == " windows/amd64" ]]; then
336
+ suffix=" .exe"
337
+ fi
338
+ for linkname in " ${OC_BINARY_COPY[@]} " ; do
339
+ local src=" ${OS_OUTPUT_BINPATH} /${platform} /oc${suffix} "
340
+ if [[ -f " ${src} " ]]; then
341
+ ln -f " $src " " ${OS_OUTPUT_BINPATH} /${platform} /${linkname}${suffix} "
342
+ fi
343
+ done
344
+
333
345
# If no release archive was requested, we're done.
334
346
if [[ " ${OS_RELEASE_ARCHIVE-} " == " " ]]; then
335
347
continue
@@ -342,14 +354,10 @@ function os::build::place_bins() {
342
354
done
343
355
344
356
# Create binary copies where specified.
345
- local suffix=" "
346
- if [[ $platform == " windows/amd64" ]]; then
347
- suffix=" .exe"
348
- fi
349
357
for linkname in " ${OC_BINARY_COPY[@]} " ; do
350
358
local src=" ${release_binpath} /oc${suffix} "
351
359
if [[ -f " ${src} " ]]; then
352
- ln " ${release_binpath} /oc${suffix} " " ${release_binpath} /${linkname}${suffix} "
360
+ cp -f " ${release_binpath} /oc${suffix} " " ${release_binpath} /${linkname}${suffix} "
353
361
fi
354
362
done
355
363
You can’t perform that action at this time.
0 commit comments