From 8a705a5321b7931dd6872201122eebd9b6570f9c Mon Sep 17 00:00:00 2001 From: unexplrd Date: Fri, 23 Jan 2026 20:20:57 +0200 Subject: [PATCH] cross platform i guess (except for tar) --- .config/create-work.nu | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/.config/create-work.nu b/.config/create-work.nu index ee02b67..330a16c 100755 --- a/.config/create-work.nu +++ b/.config/create-work.nu @@ -1,6 +1,8 @@ #!/usr/bin/env nu # Configuration +use std + let template_dir = ".config/template" let config_dir = ".config" let out_dir = $"(pwd)" @@ -21,7 +23,7 @@ def main [subject: string, shortcode: string, number?: int] { # TODO?: replace with git clone # copy-template $temp_dir - $template | decode base64 | tar zxvf - --strip-components=1 -C $temp_dir o> /dev/null + $template | decode base64 | tar zxvf - --strip-components=1 -C $temp_dir o> (std null-device) generate-doc-toml $shortcode_lower $subject_lower $temp_dir $number if not ($out_dir | path exists) {