Skip to content

Commit db298f6

Browse files
authored
Update index.js
1 parent d1ce7ab commit db298f6

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

index.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -20,11 +20,11 @@ function installPMD(){
2020
}
2121

2222
function referencePMD(){
23-
var mk = 'sudo chmod -R 757 /usr/bin'
23+
var mk = 'sudo mkdir /snap/bin && sudo chmod -R 757 /snap/bin'
2424
var cmd =
2525
`sudo echo '#! /bin/bash
26-
$HOME/pmd/bin/run.sh pmd "$@"' > /usr/bin/pmd`
27-
var cm = 'chmod +x /usr/bin/pmd'
26+
$HOME/pmd/bin/run.sh pmd "$@"' > /snap/bin/pmd`
27+
var cm = 'chmod +x /snap/bin/pmd'
2828
exec(mk+' && '+cmd+' && '+cm, function(error, stdout, stderr){
2929
if(error) core.setFailed(stderr)
3030
core.debug(stdout)

0 commit comments

Comments
 (0)