Skip to content

Commit

Permalink
Update install-dependencies.js
Browse files Browse the repository at this point in the history
  • Loading branch information
AlexisKGZ authored Sep 12, 2023
1 parent de9615e commit b3692e1
Showing 1 changed file with 10 additions and 1 deletion.
11 changes: 10 additions & 1 deletion src/utils/install-dependencies.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,10 +6,19 @@ var fnInstallSFDX = function(){
execCommand.run('wget', ['https://developer.salesforce.com/media/salesforce-cli/sf/channels/stable/sf-linux-x64.tar.xz']);
execCommand.run('mkdir', ['-p', 'sfdx-cli']);
execCommand.run('tar', ['xJf', 'sf-linux-x64.tar.xz', '-C', 'sfdx-cli', '--strip-components', '1']);
//execCommand.run('export', ['export PATH=~/sfdx-cli/bin:$PATH']);
execCommand.run('export', ['PATH=~/sfdx-cli/bin:$PATH']);
execCommand.run('sf', ['--version']);
core.info('=== SFDX cli installed ===');
};

wget https://developer.salesforce.com/media/salesforce-cli/sf/channels/stable/sf-linux-x64.tar.xz
sudo mkdir ~/sfdx-cli
sudo tar xJf sf-linux-x64.tar.xz -C ~/sfdx-cli --strip-components 1
export PATH=$PATH:~/sfdx-cli/bin
echo "~/sfdx-cli/bin" >> $GITHUB_PATH
sudo chmod -R 777 ~/sfdx-cli
sf --version

module.exports.install = function(command, args) {
//Installs Salesforce DX CLI
fnInstallSFDX();
Expand Down

0 comments on commit b3692e1

Please sign in to comment.