Skip to content

Commit 6175b56

Browse files
committed
Remove only scala-cli directory if exists in updating standalone launchers
1 parent d0a9370 commit 6175b56

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

build.sc

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -690,9 +690,9 @@ object ci extends Module {
690690
val standaloneLauncherPath = scalaCliDir / "scala-cli.sh"
691691
val standaloneWindowsLauncherPath = scalaCliDir / "scala-cli.bat"
692692

693-
// clean target directory
694-
if (os.exists(targetDir)) os.remove.all(targetDir)
695-
os.makeDir.all(targetDir)
693+
// clean scala-cli directory
694+
if (os.exists(scalaCliDir)) os.remove.all(scalaCliDir)
695+
if (!os.exists(targetDir)) os.makeDir.all(targetDir)
696696

697697
val branch = "master"
698698
val repo = s"https://oauth2:${ghToken()}@github.com/VirtusLab/scala-cli.git"

0 commit comments

Comments
 (0)