Skip to content

Commit 6c68da8

Browse files
committed
restored executable flag for packaged scripts (relates to #175)
1 parent 967f679 commit 6c68da8

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/main/kotlin/kscript/app/AppHelpers.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -350,7 +350,7 @@ exec java -jar ${'$'}0 "${'$'}@"
350350
}
351351

352352
pckgedJar.delete()
353-
File(tmpProjectDir, "build/libs/${appName}").copyTo(pckgedJar, true)
353+
File(tmpProjectDir, "build/libs/${appName}").copyTo(pckgedJar, true).setExecutable(true)
354354

355355
infoMsg("Finished packaging into ${pckgedJar}")
356356
}

0 commit comments

Comments
 (0)