From 66ee1f0fde768428f59ab28ea6316fb34adb5853 Mon Sep 17 00:00:00 2001 From: Stepan Stolyarov Date: Fri, 11 Jul 2014 16:55:09 +0700 Subject: [PATCH] Shebang hackery to workaround Debian stupidity http://unix.stackexchange.com/questions/65235/universal-node-js-shebang --- lib/json.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/lib/json.js b/lib/json.js index 645002f..4a1901a 100755 --- a/lib/json.js +++ b/lib/json.js @@ -1,4 +1,5 @@ -#!/usr/bin/env node +#!/usr/bin/env sh +':' //; exec "$(command -v nodejs || command -v node)" "$0" "$@" /** * Copyright (c) 2014 Trent Mick. All rights reserved. * Copyright (c) 2014 Joyent Inc. All rights reserved.