diff --git a/index.js b/index.js index b383ff9..66f3b4f 100644 --- a/index.js +++ b/index.js @@ -23,7 +23,7 @@ function referencePMD(){ var mk = 'sudo mkdir -p /snap/bin && sudo chmod -R 757 /snap/bin' var cmd = `sudo echo '#! /bin/bash -$HOME/pmd/bin/run.sh "$@"' > /snap/bin/pmd` +$HOME/pmd/bin/run.sh pmd "$@"' > /snap/bin/pmd` var cm = 'chmod +x /snap/bin/pmd' exec(mk+' && '+cmd+' && '+cm, function(error, stdout, stderr){ if(error) core.setFailed(stderr)