on master help sign in
Strip newline from container ID
commit7d4319da1beaba0dbb6ea2d5647944c275b980bc authorTom Smalley <tfsmalley@gmail.com> dateFri 19 Oct 2018, 09:05 (8 years ago) parent2fcd048
1 file changed+1−1
lib/command/src/Obelisk/Command/VmBuilder.hs+1−1
lib/command/src/Obelisk/Command/VmBuilder.hs+1−1
@@ -74,7 +74,7 @@ setupNixDocker stateDir = withSpinner ("Creating Docker container named " <> con
7474 proc "ssh-keygen" ["-t", "ed25519", "-f", stateDir </> sshKeyFileName, "-P", ""]
7575
7676 -- Build the docker container (which uses the SSH keys in the 'ssh' folder)
77− containerId <- readProcessAndLogStderr Error $
77+ containerId <- fmap T.strip $ readProcessAndLogStderr Error $
7878 proc "docker" ["build", stateDir, "--quiet"]
7979 callProcessAndLogOutput (Debug, Error) $ proc "docker"
8080 [ "run"