From 8d09cfffcf4a2d99237f394c57e0c41406ead492 Mon Sep 17 00:00:00 2001 From: Andrea Bedini Date: Fri, 11 Mar 2022 17:35:19 +0800 Subject: [PATCH] Fix keys handling --- app/Main.hs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/app/Main.hs b/app/Main.hs index 8de3ab9..4c2e5f4 100644 --- a/app/Main.hs +++ b/app/Main.hs @@ -93,7 +93,8 @@ ensureKeys keysDir = do case mKeys of Just _keys -> do echo "Using keys from environment" - bash_ "echo \"$KEYS\" | base64 -d | tar xz" [] + mkdir keysDir + bash_ ("echo \"$KEYS\" | base64 -d | tar xvz -C " <> keysDir) [] Nothing -> do echo $ "Creating new repository keys in " <> toTextIgnore keysDir liftIO $ createKeys keysDir