Skip to content

Commit 4873692

Browse files
committed
JBDS-4187 add oc to PATH om macOS
Fix creates soft link in /usr/local/bin folder
1 parent f7d58b3 commit 4873692

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

browser/model/cdk.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -128,6 +128,7 @@ class CDKInstall extends InstallableItem {
128128
.then((result) => { return Platform.OS === 'win32' ? installer.writeFile(this.pscpPathScript, data, result) : Promise.resolve(true); })
129129
.then((result) => { return installer.writeFile(this.installerDataSvc.cdkMarker(), markerContent, result); })
130130
.then((result) => { return Platform.OS === 'win32' ? installer.execFile('powershell', opts, result) : Promise.resolve(true); })
131+
.then((result) => { return Platform.OS === 'win32' ? Promise.resolve(true) : installer.exec(`rm -f /usr/local/bin/oc; ln -s ${ocDir}/oc /usr/local/bin/oc;`)})
131132
.then((result) => { return Platform.OS === 'win32' ? installer.exec('setx VAGRANT_DETECTED_OS "cygwin"') : Promise.resolve(true); })
132133
.then((result) => { return this.setupVagrant(installer, result); })
133134
.then((result) => { return installer.succeed(result); })

0 commit comments

Comments
 (0)