Commit 9240d74
fix for 3789 - updated (#3794)
* fix for 3789 - script if .sc, or (if no extension) has shebang
* verify-non-directory in shebang-test
* reorder isDir case ahead of isShebangScript
* added integration test for enabled case
* restore line endings
* adjust new test
* quote msg
* fix quoted msg
* Apply suggestions from code review
suggested changes
Co-authored-by: Piotr Chabelski <ged.subfan@gmail.com>
* remove isScript extra paren
---------
Co-authored-by: Piotr Chabelski <ged.subfan@gmail.com>1 parent cfa254c commit 9240d74
File tree
4 files changed
+25
-5
lines changed- modules
- build/src/main/scala/scala/build
- input
- integration/src/test/scala/scala/cli/integration
4 files changed
+25
-5
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
436 | 436 | | |
437 | 437 | | |
438 | 438 | | |
439 | | - | |
| 439 | + | |
440 | 440 | | |
441 | 441 | | |
442 | 442 | | |
| |||
Lines changed: 6 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
8 | 8 | | |
9 | 9 | | |
10 | 10 | | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
11 | 16 | | |
12 | 17 | | |
13 | 18 | | |
| |||
20 | 25 | | |
21 | 26 | | |
22 | 27 | | |
23 | | - | |
| 28 | + | |
24 | 29 | | |
25 | 30 | | |
26 | 31 | | |
| |||
Lines changed: 3 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
275 | 275 | | |
276 | 276 | | |
277 | 277 | | |
278 | | - | |
| 278 | + | |
| 279 | + | |
| 280 | + | |
279 | 281 | | |
280 | 282 | | |
281 | 283 | | |
282 | 284 | | |
283 | 285 | | |
284 | | - | |
285 | 286 | | |
286 | 287 | | |
287 | 288 | | |
| |||
Lines changed: 15 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
573 | 573 | | |
574 | 574 | | |
575 | 575 | | |
| 576 | + | |
| 577 | + | |
| 578 | + | |
| 579 | + | |
| 580 | + | |
| 581 | + | |
| 582 | + | |
| 583 | + | |
| 584 | + | |
| 585 | + | |
| 586 | + | |
| 587 | + | |
| 588 | + | |
| 589 | + | |
| 590 | + | |
576 | 591 | | |
577 | 592 | | |
578 | 593 | | |
| |||
591 | 606 | | |
592 | 607 | | |
593 | 608 | | |
594 | | - | |
595 | 609 | | |
596 | 610 | | |
597 | 611 | | |
| |||
0 commit comments