Skip to content
This repository has been archived by the owner on Apr 8, 2024. It is now read-only.

Commit

Permalink
fix: don't change dataDir for bundled sf
Browse files Browse the repository at this point in the history
  • Loading branch information
RodEsp committed Nov 2, 2021
1 parent 07aad5a commit fbeaf1f
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "sfdx-cli",
"description": "Salesforce CLI",
"version": "7.126.0-dev.7",
"version": "7.126.0-dev.8",
"author": "Salesforce",
"license": "BSD-3-Clause",
"bugs": "https://github.com/forcedotcom/cli/issues",
Expand Down
4 changes: 3 additions & 1 deletion scripts/include-sf.js
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ const npmGlobalInstallPath = shelljs.exec('npm list -g --depth 0 | head -1').std
const sfGlobalPath = path.join(npmGlobalInstallPath, 'node_modules', '@salesforce', 'cli');

console.log(`---- Including SF ----`);
console.log(`Moving sf from ${sfGlobalPath} to ./sf`);
console.log(` Moving sf from ${sfGlobalPath} to ./sf`);
shelljs.mv('-f', sfGlobalPath, 'sf');

const sfUnixPath = 'sf/bin/run';
Expand All @@ -25,6 +25,7 @@ console.log(` Updating ${sfdxBin} with references to sf`);
const binContents = fs
.readFileSync(sfdxBin, 'UTF-8')
.replace(/sfdx/g, 'sf')
.replace(/sf\/client/g, 'sfdx/client')
.replace(/SFDX/g, 'SF')
.replace(/\$DIR\/run/g, `$(dirname $DIR)/${sfUnixPath}`);

Expand All @@ -40,6 +41,7 @@ console.log(` Updating ${sfdxCmd} with references to sf`);
const cmdContents = fs
.readFileSync(sfdxCmd, 'UTF-8')
.replace(/sfdx/g, 'sf')
.replace(/sf\\client/g, 'sfdx/client')
.replace(/SFDX/g, 'SF')
.replace(/bin\\run/g, sfWinPath);

Expand Down

0 comments on commit fbeaf1f

Please sign in to comment.