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 513530e commit bebe578
Showing 1 changed file with 1 addition and 9 deletions.
10 changes: 1 addition & 9 deletions src/utils/install-dependencies.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,19 +6,11 @@ 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', ['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 bebe578

Please sign in to comment.