1 | 'use strict';
|
2 |
|
3 | Object.defineProperty(exports, "__esModule", {
|
4 | value: true
|
5 | });
|
6 |
|
7 | var _isWindows = require('is-windows');
|
8 |
|
9 | var _isWindows2 = _interopRequireDefault(_isWindows);
|
10 |
|
11 | function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
12 |
|
13 | exports.default = commandConvert;
|
14 |
|
15 |
|
16 |
|
17 |
|
18 |
|
19 |
|
20 |
|
21 | function commandConvert(command) {
|
22 | if (!(0, _isWindows2.default)()) {
|
23 | return command;
|
24 | }
|
25 | var envUnixRegex = /\$(\w+)|\${(\w+)}/g;
|
26 | return command.replace(envUnixRegex, '%$1$2%');
|
27 | } |
\ | No newline at end of file |