Skip to content

Commit 21d4412

Browse files
authored
Merge branch 'master' into 6552-improve-invalid-contribution-type-error
2 parents 421be6a + 33943b5 commit 21d4412

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

modules/nf-commons/src/main/nextflow/plugin/PluginsFacade.groovy

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -255,7 +255,7 @@ class PluginsFacade implements PluginStateListener {
255255

256256
log.debug "Setting up plugin manager > mode=${mode}; embedded=$embedded; plugins-dir=$root; core-plugins: ${defaultPlugins.toSortedString()}"
257257
// make sure plugins dir exists
258-
if( mode!=DEV_MODE && !FilesEx.mkdirs(root) )
258+
if( mode!=DEV_MODE && !FilesEx.exists(root) && !FilesEx.mkdirs(root) )
259259
throw new IOException("Unable to create plugins dir: $root")
260260

261261
this.manager = createManager(root, embedded)

0 commit comments

Comments
 (0)