Fix printing of output in publish command.