🐛 do not copy when static dir does not exist

This commit is contained in:
zztkm 2022-08-13 17:43:25 +09:00
parent 06dcc11214
commit e7c9365456

4
vss.v
View file

@ -90,7 +90,9 @@ fn build() ? {
}
// 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)?
mut config_map := get_config_map()?