🐛 do not copy when static dir does not exist

main
zztkm 2 years ago
parent 06dcc11214
commit e7c9365456

@ -90,7 +90,9 @@ fn build() ? {
} }
// copy static files // copy static files
os.cp_all(defautl_static, dist, false)? if os.exists(defautl_static) {
os.cp_all(defautl_static, dist, false)?
}
template_content := os.read_file(default_template)? template_content := os.read_file(default_template)?
mut config_map := get_config_map()? mut config_map := get_config_map()?

Loading…
Cancel
Save