Skip to content

Commit

Permalink
Fix keys handling
Browse files Browse the repository at this point in the history
  • Loading branch information
andreabedini committed Mar 11, 2022
1 parent 2af2c24 commit 8d09cff
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion app/Main.hs
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 8d09cff

Please sign in to comment.