pawamoy / failprint

Run a command, print its output only if it fails.
https://pawamoy.github.io/failprint
ISC License
7 stars 0 forks source link

Things to try to fix runs on Windows... #5

Closed pawamoy closed 3 years ago

pawamoy commented 3 years ago
ns = collection.Collection(directories)
ns.configure({
    'run': {
        'shell': os.environ.get('COMSPEC', os.environ.get('SHELL'))
    }
})

Or always use double-quotes to wrap arguments in context.run. Or run commands with bash -c.

pawamoy commented 3 years ago

Fixed by switching to duty instead of invoke.