Skip to content

Commit

Permalink
revert
Browse files Browse the repository at this point in the history
  • Loading branch information
JamieBriersSageCom committed Mar 22, 2021
1 parent a80e166 commit 27a0102
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
6 changes: 3 additions & 3 deletions dist/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -16,10 +16,10 @@ try {
}

function installPMD(version) {
var download = `wget https://github.com/pmd/pmd/releases/download/pmd_releases%2F${version}/pmd-bin-${version}.zip -O /tmp/pmd.zip`
var unzip = 'unzip /tmp/pmd.zip -d /tmp'
var download = `wget https://github.com/pmd/pmd/releases/download/pmd_releases%2F${version}/pmd-bin-${version}.zip -P /tmp`
var unzip = `unzip /tmp/pmd-bin-${version}.zip -d /tmp`
var mk = 'mkdir $HOME/pmd'
var mv = 'mv /tmp/pmd/* $HOME/pmd'
var mv = `mv /tmp/pmd-bin-${version}/* $HOME/pmd`
exec(download + ' && ' + unzip + ' && ' + mk + ' && ' + mv, function (error, stdout, stderr) {
if (error) core.setFailed(stderr)
core.debug(stdout)
Expand Down
6 changes: 3 additions & 3 deletions index.js
Original file line number Diff line number Diff line change
Expand Up @@ -9,10 +9,10 @@ try {
}

function installPMD(version) {
var download = `wget https://github.com/pmd/pmd/releases/download/pmd_releases%2F${version}/pmd-bin-${version}.zip -O /tmp/pmd.zip`
var unzip = 'unzip /tmp/pmd.zip -d /tmp'
var download = `wget https://github.com/pmd/pmd/releases/download/pmd_releases%2F${version}/pmd-bin-${version}.zip -P /tmp`
var unzip = `unzip /tmp/pmd-bin-${version}.zip -d /tmp`
var mk = 'mkdir $HOME/pmd'
var mv = 'mv /tmp/pmd/* $HOME/pmd'
var mv = `mv /tmp/pmd-bin-${version}/* $HOME/pmd`
exec(download + ' && ' + unzip + ' && ' + mk + ' && ' + mv, function (error, stdout, stderr) {
if (error) core.setFailed(stderr)
core.debug(stdout)
Expand Down

0 comments on commit 27a0102

Please sign in to comment.