Skip to content

Commit 2bd4a8b

Browse files
authored
Fix the error when build with --clean (#476)
1 parent 068a9ac commit 2bd4a8b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

rye/src/cli/build.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@ pub fn execute(cmd: Args) -> Result<(), Error> {
5252
None => project.workspace_path().join("dist"),
5353
};
5454

55-
if cmd.clean {
55+
if out.exists() && cmd.clean {
5656
for entry in fs::read_dir(&out)? {
5757
let path = entry?.path();
5858
if path.is_file() {

0 commit comments

Comments
 (0)