fix newline issues when passing args directly to binary instead of bash
This commit is contained in:
1 parent
38f11894b5
commit
90bbf0c643
2 files changed
+10
-2
No files matched your search
+5
-1
@@ -20,10 +20,14 @@ export async function installFpmViaRuby(debug) {
|
||||
export async function executeFpmBuild(computedFpmArgs, debug) {
|
||||
|
||||
const userFpmArgs = core.getInput('fpm_args');
|
||||
const fpmCmd = 'fpm'
|
||||
let fpmCmd = 'fpm'
|
||||
+ ' ' + computedFpmArgs
|
||||
+ ' ' + userFpmArgs;
|
||||
|
||||
fpmCmd = fpmCmd.replaceAll('\n', ' ')
|
||||
.replaceAll('\\n', ' ')
|
||||
.replaceAll('\\', ' ');
|
||||
|
||||
if (debug) {
|
||||
console.log('fpm command: ', fpmCmd);
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user