Skip to content

Commit 33943b5

Browse files
authored
Allow pre-existing write-protected plugins directory to be used (#6594)
Signed-off-by: Ben Sherman <[email protected]>
1 parent 9930e35 commit 33943b5

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)