UNPKG

@tetcoin/dev

Version:

A collection of shared CI scripts and development environment used by @tetcoin projects

16 lines (12 loc) 423 B
// Copyright 2017-2020 @polkadot/dev authors & contributors // This software may be modified and distributed under the terms // of the Apache-2.0 license. See the LICENSE file for details. const { execSync } = require('child_process'); module.exports = function execute (cmd, noLog) { !noLog && console.log(`$ ${cmd}`); try { execSync(cmd, { stdio: 'inherit' }); } catch (error) { process.exit(-1); } };