From 6fa17f0d53637e8b6690240a04d5375878231a3f Mon Sep 17 00:00:00 2001 From: Florian Schrofner Date: Sun, 17 Nov 2024 14:08:26 +0100 Subject: [PATCH] use parent path for config dir creation --- configs/configs.clj | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/configs/configs.clj b/configs/configs.clj index e55c56b..3be6d37 100755 --- a/configs/configs.clj +++ b/configs/configs.clj @@ -41,7 +41,7 @@ (defn- link-config-file [src dest] ;; make sure the parent directory of destination file exists - (safe-sh-as-user "mkdir" "-p" dest) + (->> (fs/file dest) (fs/parent) (fs/path) (safe-sh-as-user "mkdir" "-p")) (safe-sh-as-user "ln" "-fs" src dest)) (defn- link-config-files []