Skip to content

Commit a8abcaf

Browse files
authored
Update index.js
1 parent 873f0e9 commit a8abcaf

File tree

1 file changed

+5
-4
lines changed

1 file changed

+5
-4
lines changed

index.js

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -10,10 +10,11 @@ try {
1010

1111
function installSFDX(){
1212
var download = 'wget https://developer.salesforce.com/media/salesforce-cli/sfdx-linux-amd64.tar.xz -P /tmp'
13-
var createDir = 'mkdir /tmp/sfdx'
14-
var unzip = 'tar xJf /tmp/sfdx-linux-amd64.tar.xz -C /tmp/sfdx --strip-components 1'
15-
var install = 'sh tmp/sfdx/install'
16-
exec(download+' && '+createDir+' && '+unzip+' && '+install, function(error, stdout, stderr){
13+
var createDir = 'mkdir sfdx'
14+
var unzip = 'tar xJf /tmp/sfdx-linux-amd64.tar.xz -C sfdx --strip-components 1'
15+
var install = './sfdx/install'
16+
var clean = 'rm -r ./sfdx'
17+
exec(download+' && '+createDir+' && '+unzip+' && '+install+' && '+clean, function(error, stdout, stderr){
1718
if(error) throw(stderr)
1819
core.debug(stdout)
1920
if(core.getInput('sfdx-auth-url')) createAuthFile()

0 commit comments

Comments
 (0)