pixl-boot 2.0.2 → 2.0.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (2) hide show
  1. package/boot.js +1 -2
  2. package/package.json +1 -1
package/boot.js CHANGED
@@ -225,8 +225,7 @@ module.exports = {
225
225
  "\t" + '<string>com.' + args.company_name + '.' + args.service_name + '</string>',
226
226
  "\t" + '<key>ProgramArguments</key>',
227
227
  "\t" + '<array>',
228
- "\t\t" + '<string>' + args.script + '</string>',
229
- "\t\t" + '<string>start</string>',
228
+ String(args.script).split(/\s+/).concat('start').map( cmd => `\t\t<string>${cmd}</string>` ).join("\n"),
230
229
  "\t" + '</array>',
231
230
  "\t" + '<key>RunAtLoad</key>',
232
231
  "\t" + '<true/>',
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "pixl-boot",
3
- "version": "2.0.2",
3
+ "version": "2.0.3",
4
4
  "description": "Register your service to launch on server startup (Linux / OS X).",
5
5
  "author": "Joseph Huckaby <jhuckaby@gmail.com>",
6
6
  "homepage": "https://github.com/jhuckaby/pixl-boot",