Skip to content

Commit

Permalink
Fix Run fails when home is a symlink
Browse files Browse the repository at this point in the history
Signed-off-by: Paolo Di Tommaso <paolo.ditommaso@gmail.com>
  • Loading branch information
pditommaso committed Dec 11, 2022
1 parent fd59b94 commit 9ff820f
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@ class LocalSecretsProvider implements SecretsProvider, Closeable {
? Paths.get(name)
: Const.APP_HOME_DIR.resolve(name)
final path = secretFile.parent
if( !path.exists() && !path.parent.mkdirs() )
if( path && !path.exists() && !path.mkdirs() )
throw new IllegalStateException("Cannot create directory '${path}' -- make sure a file with the same name doesn't already exist and you have write permissions")
return secretFile
}
Expand Down

0 comments on commit 9ff820f

Please sign in to comment.