diff --git a/system/git.nix b/system/git.nix index 2d3eec83..b888872e 100644 --- a/system/git.nix +++ b/system/git.nix @@ -30,7 +30,7 @@ let git "push" "--all" "-f" mirror deploy <- lookupEnv "GL_OPTION_WEB_DEPLOY" whenJust deploy $ \deploy -> do - (maybe [] ("-A":) -> target) <- lookupEnv "GL_OPTION_WEB_DEPLOY_NIX_TARGET" + (maybe [] (\x -> ["-A",x]) -> target) <- lookupEnv "GL_OPTION_WEB_DEPLOY_NIX_TARGET" (decodeUtf8 -> path) <- pwd |> captureTrim echo ([i|Deploying build to /var/www/#{deploy}|] :: String) bracket (checkout path) (rm "-rf") $ \dir -> withCurrentDirectory dir $ nix-build "-o" ([i|/var/www/#{deploy}|] :: String) target