We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 6d923bc commit b974426Copy full SHA for b974426
buildSrc/src/main/kotlin/ApplyArgbash.kt
@@ -42,10 +42,10 @@ abstract class ApplyArgbash @Inject constructor(
42
fun applyArgbash() {
43
val argbash = argbashHome.get().file("bin/argbash").asFile
44
scriptTemplates.get().visit {
45
- if(!isDirectory) {
46
- val relPath = relativePath.parent.pathString
+ val relativePath = relativePath.parent?.pathString
+ if (!isDirectory && relativePath != null) {
47
val basename = file.nameWithoutExtension
48
- val outputFile = outputDir.get().file("$relPath/$basename.sh").asFile
+ val outputFile = outputDir.get().file("$relativePath/$basename.sh").asFile
49
outputFile.parentFile.mkdirs()
50
51
logger.info("Applying argbash to $file")
0 commit comments