Skip to content

Commit 352f73e

Browse files
authored
Merge pull request #7 from oltrep/fix-mkdir-command
Fix mkdir command to prevent error when directory already exists
2 parents 2641768 + 0e3c927 commit 352f73e

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

index.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ function installPMD(){
2020
}
2121

2222
function referencePMD(){
23-
var mk = 'sudo mkdir /snap/bin && sudo chmod -R 757 /snap/bin'
23+
var mk = 'sudo mkdir -p /snap/bin && sudo chmod -R 757 /snap/bin'
2424
var cmd =
2525
`sudo echo '#! /bin/bash
2626
$HOME/pmd/bin/run.sh pmd "$@"' > /snap/bin/pmd`

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "setup-pmd-action",
3-
"version": "1.0.0",
3+
"version": "1.0.1",
44
"description": "This action allows to use PMD Source Code Analyzer from GitHub Actions",
55
"main": "index.js",
66
"scripts": {

0 commit comments

Comments
 (0)