fix newline issues when passing args directly to binary instead of bash
This commit is contained in:
Vendored
+5
-1
@@ -30214,10 +30214,14 @@ async function installFpmViaRuby(debug) {
|
|||||||
async function executeFpmBuild(computedFpmArgs, debug) {
|
async function executeFpmBuild(computedFpmArgs, debug) {
|
||||||
|
|
||||||
const userFpmArgs = _actions_core__WEBPACK_IMPORTED_MODULE_0__.getInput('fpm_args');
|
const userFpmArgs = _actions_core__WEBPACK_IMPORTED_MODULE_0__.getInput('fpm_args');
|
||||||
const fpmCmd = 'fpm'
|
let fpmCmd = 'fpm'
|
||||||
+ ' ' + computedFpmArgs
|
+ ' ' + computedFpmArgs
|
||||||
+ ' ' + userFpmArgs;
|
+ ' ' + userFpmArgs;
|
||||||
|
|
||||||
|
fpmCmd = fpmCmd.replaceAll('\n', ' ')
|
||||||
|
.replaceAll('\\n', ' ')
|
||||||
|
.replaceAll('\\', ' ');
|
||||||
|
|
||||||
if (debug) {
|
if (debug) {
|
||||||
console.log('fpm command: ', fpmCmd);
|
console.log('fpm command: ', fpmCmd);
|
||||||
}
|
}
|
||||||
|
|||||||
+5
-1
@@ -20,10 +20,14 @@ export async function installFpmViaRuby(debug) {
|
|||||||
export async function executeFpmBuild(computedFpmArgs, debug) {
|
export async function executeFpmBuild(computedFpmArgs, debug) {
|
||||||
|
|
||||||
const userFpmArgs = core.getInput('fpm_args');
|
const userFpmArgs = core.getInput('fpm_args');
|
||||||
const fpmCmd = 'fpm'
|
let fpmCmd = 'fpm'
|
||||||
+ ' ' + computedFpmArgs
|
+ ' ' + computedFpmArgs
|
||||||
+ ' ' + userFpmArgs;
|
+ ' ' + userFpmArgs;
|
||||||
|
|
||||||
|
fpmCmd = fpmCmd.replaceAll('\n', ' ')
|
||||||
|
.replaceAll('\\n', ' ')
|
||||||
|
.replaceAll('\\', ' ');
|
||||||
|
|
||||||
if (debug) {
|
if (debug) {
|
||||||
console.log('fpm command: ', fpmCmd);
|
console.log('fpm command: ', fpmCmd);
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user