We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 95438f2 commit 72ead50Copy full SHA for 72ead50
src/index.js
@@ -20,10 +20,13 @@ const generateScript = (host, port) => {
20
};
21
22
return Object.entries(payloads).reduce((script, [cmd, payload]) => {
23
- script += `if command -v ${cmd} > /dev/null 2>&1; then\n` +
24
- ` ${payload}\n` +
25
- ' exit; \n' +
26
- 'fi \n';
+ script += `
+
+if command -v ${cmd} > /dev/null 2>&1; then
+ ${payload}
27
+ exit;
28
+fi`;
29
30
return script;
31
}, '');
32
0 commit comments