Skip to content

Commit

Permalink
Fix directory watching from relative path
Browse files Browse the repository at this point in the history
  • Loading branch information
iamgio committed Dec 12, 2024
1 parent 990b93d commit 1797d75
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -149,9 +149,9 @@ abstract class ExecuteCommand(

// If file watching is enabled, a file change triggers the pipeline execution again.
if (watch) {
Log.info("Watching for file changes.")
cliOptions.source?.absoluteFile?.parentFile?.let { sourceDirectory ->
Log.info("Watching for file changes in source directory: $sourceDirectory")

cliOptions.source?.parentFile?.let { sourceDirectory ->
DirectoryWatcher.create(sourceDirectory) { event ->
Log.info("File changed: ${event.path()}. Launching.")
execute(cliOptions, pipelineOptions)
Expand Down

0 comments on commit 1797d75

Please sign in to comment.