Skip to content

Commit

Permalink
checking if canonical file resolves symlinks
Browse files Browse the repository at this point in the history
  • Loading branch information
leansh committed Nov 6, 2019
1 parent c569897 commit 3724e20
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -33,9 +33,9 @@ class DataWeaveCLIRunner {

val DW_DEFAULT_OUTPUT_MIMETYPE_VAR = "DW_DEFAULT_OUTPUT_MIMETYPE"

val DW_CLI_VERSION = "1.0.0"
val DW_CLI_VERSION = "1.0.1"

val DW_RUNTIME_VERSION = "2.2.3"
val DW_RUNTIME_VERSION = "2.3.0"

def run(args: Array[String]): Int = {
val scriptToRun = parse(args)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ object DataWeaveUtils {
if(dwScriptPath != null) {
val scriptPath = new File(dwScriptPath)
if(scriptPath.isFile && scriptPath.getName == "dw"){
return scriptPath.getAbsoluteFile.getParentFile
return scriptPath.getCanonicalFile.getParentFile
}
}
println(AnsiColor.yellow(s"[warning] Unable to detect Weave Home directory so local directory is going to be used. Please either define the env variable WEAVE_HOME or copy the weave distro into `${defaultDWHomeDir.getAbsolutePath}`."))
Expand Down

0 comments on commit 3724e20

Please sign in to comment.