mirror of
https://github.com/AppFlowy-IO/AppFlowy.git
synced 2024-08-30 18:12:39 +00:00
chore: print message if the dir is not empty
This commit is contained in:
parent
64e43fa1f3
commit
02754eb069
@ -42,7 +42,6 @@ run_task = { name = "remove_files_with_pattern" }
|
|||||||
|
|
||||||
#Dart Clean
|
#Dart Clean
|
||||||
[tasks.rm_dart_generated_files]
|
[tasks.rm_dart_generated_files]
|
||||||
private = true
|
|
||||||
env = { "dart_flowy_sdk_path" = "./app_flowy/packages/flowy_sdk/" }
|
env = { "dart_flowy_sdk_path" = "./app_flowy/packages/flowy_sdk/" }
|
||||||
run_task = { name = ["rm_dart_generated_protobuf_files"] }
|
run_task = { name = ["rm_dart_generated_protobuf_files"] }
|
||||||
|
|
||||||
@ -51,14 +50,13 @@ private = true
|
|||||||
script = [
|
script = [
|
||||||
"""
|
"""
|
||||||
protobuf_file_paths = glob_array ${dart_flowy_sdk_path}/lib/protobuf
|
protobuf_file_paths = glob_array ${dart_flowy_sdk_path}/lib/protobuf
|
||||||
if array_is_empty ${protobuf_file_paths}
|
|
||||||
return
|
|
||||||
end
|
|
||||||
|
|
||||||
echo Remove generated protobuf files:
|
if not array_is_empty ${protobuf_file_paths}
|
||||||
for path in ${protobuf_file_paths}
|
echo Remove generated protobuf files:
|
||||||
echo remove ${path}
|
for path in ${protobuf_file_paths}
|
||||||
rm -rf ${path}
|
echo remove ${path}
|
||||||
|
rm -rf ${path}
|
||||||
|
end
|
||||||
end
|
end
|
||||||
""",
|
""",
|
||||||
]
|
]
|
||||||
@ -71,7 +69,7 @@ script = [
|
|||||||
"""
|
"""
|
||||||
proto_file_paths = glob_array ${rm_proto_path}
|
proto_file_paths = glob_array ${rm_proto_path}
|
||||||
is_proto_file_paths_empty = array_is_empty ${proto_file_paths}
|
is_proto_file_paths_empty = array_is_empty ${proto_file_paths}
|
||||||
if !is_proto_file_paths_empty
|
if not ${is_proto_file_paths_empty}
|
||||||
echo Remove generated proto files:
|
echo Remove generated proto files:
|
||||||
for path in ${proto_file_paths}
|
for path in ${proto_file_paths}
|
||||||
echo remove ${path}
|
echo remove ${path}
|
||||||
@ -81,7 +79,7 @@ script = [
|
|||||||
|
|
||||||
protobuf_file_paths = glob_array ${rm_protobuf_path}
|
protobuf_file_paths = glob_array ${rm_protobuf_path}
|
||||||
is_protobuf_file_paths_empty = array_is_empty ${protobuf_file_paths}
|
is_protobuf_file_paths_empty = array_is_empty ${protobuf_file_paths}
|
||||||
if !is_protobuf_file_paths_empty
|
if not ${is_protobuf_file_paths_empty}
|
||||||
echo Remove generated protobuf files:
|
echo Remove generated protobuf files:
|
||||||
for path in ${protobuf_file_paths}
|
for path in ${protobuf_file_paths}
|
||||||
echo remove ${path}
|
echo remove ${path}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user