diff --git a/.config/create-work.nu b/.config/create-work.nu index 6fd5691..387dc2d 100755 --- a/.config/create-work.nu +++ b/.config/create-work.nu @@ -18,7 +18,7 @@ def main [subject: string, shortcode: string, number: string = ""] { copy-template $temp_dir generate-doc-toml $shortcode_lower $subject_lower $temp_dir $number - if not ($final_dir | path exists) { + if ($final_dir | path exists) { error make -u {msg: $"Directory ($final_dir) already exists"} }