bebebebebebbbeb
This commit is contained in:
@@ -3,7 +3,7 @@
|
||||
# Configuration
|
||||
let template_dir = ".typst-template"
|
||||
let config_dir = ".config"
|
||||
let out_dir = (pwd)
|
||||
let out_dir = $"(pwd)/works"
|
||||
|
||||
def main [subject: string, shortcode: string, number: string = ""] {
|
||||
let subject_lower = ($subject | str downcase)
|
||||
@@ -45,7 +45,7 @@ def validate-input [subject: string, shortcode: string, number: string] {
|
||||
error make -u {msg: "subjects.toml not found in config directory"}
|
||||
}
|
||||
|
||||
if $out_dir != "." and not ($out_dir | path exists) {
|
||||
if not ($out_dir | path exists) {
|
||||
mkdir $out_dir
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user