Skip to content

Commit

Permalink
fix: Create template directory if it doesn't exist
Browse files Browse the repository at this point in the history
  • Loading branch information
0ffz committed May 28, 2024
1 parent 2a13869 commit 297ed8a
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion gradle.properties
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
kotlin.code.style=official
version=3.0.0-alpha.2
version=3.0.0-alpha.3
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ class ConfigCommand : CliktCommand(name = "config", help = "Syncs local config f
"-t", "--template-cache",
help = "Directory to cache template results, if unspecified will not templates .peb files"
)
.path(mustExist = false, canBeFile = false, mustBeWritable = true)
.path(mustExist = false, canBeFile = false)

@OptIn(ExperimentalStdlibApi::class)
override fun run() {
Expand All @@ -75,7 +75,7 @@ class ConfigCommand : CliktCommand(name = "config", help = "Syncs local config f
val destToSource = tree.destFilesForRoots(paths)
val trackedFiles = destToSource.keys.map { it.pathString }.toSet()
t.println("${MSG.info} Synchronizing ${trackedFiles.size} files...")

templateCacheDir?.createParentDirectories()
val startTime = TimeSource.Monotonic.markNow()
val templater = Templater()
val results = runBlocking(Dispatchers.IO) {
Expand Down

0 comments on commit 297ed8a

Please sign in to comment.