From f5d84333418dc810cb06d2306b5d1688f44c36f3 Mon Sep 17 00:00:00 2001 From: Nick O'Leary Date: Thu, 26 Feb 2015 11:38:05 +0000 Subject: [PATCH] Add node-red-pi command --- bin/{node-red => node-red-pi} | 0 package.json | 3 ++- red/red.js | 1 + 3 files changed, 3 insertions(+), 1 deletion(-) rename bin/{node-red => node-red-pi} (100%) diff --git a/bin/node-red b/bin/node-red-pi similarity index 100% rename from bin/node-red rename to bin/node-red-pi diff --git a/package.json b/package.json index f7e7a3d7f..afabba239 100644 --- a/package.json +++ b/package.json @@ -14,7 +14,8 @@ "test": "./node_modules/.bin/grunt" }, "bin" : { - "node-red": "bin/node-red" + "node-red": "./red.js", + "node-red-pi": "bin/node-red" }, "contributors": [ {"name": "Nick O'Leary"}, diff --git a/red/red.js b/red/red.js index 84dcc3bf4..3964a8ff8 100644 --- a/red/red.js +++ b/red/red.js @@ -1,3 +1,4 @@ +#!/usr/bin/env node /** * Copyright 2013, 2015 IBM Corp. *