From c89f8e2aa6a269cf6b463588f56ca8b85b5b8398 Mon Sep 17 00:00:00 2001 From: xyny Date: Sun, 11 Aug 2024 16:25:43 +0300 Subject: [PATCH] fix: don't try to set PWD dynamically --- files/scripts/lib/std.nu | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/files/scripts/lib/std.nu b/files/scripts/lib/std.nu index a4f3e82..1fe0891 100644 --- a/files/scripts/lib/std.nu +++ b/files/scripts/lib/std.nu @@ -13,7 +13,7 @@ export def fetch_generic [url: string, suffix: string] { } export def fetch_copr [url: string] { - let copr_name = (PWD=/etc/yum.repos.d mktemp --suffix ".repo") + let copr_name = (mktemp --tmpdir-path "/etc/yum.repos.d/" --suffix ".repo") http get $url | save -f $copr_name return $copr_name }