From 1024f0d662ccc0e94c4f940bfe07d95f68bf3283 Mon Sep 17 00:00:00 2001 From: dmx Date: Tue, 24 Nov 2015 10:56:21 +0800 Subject: [PATCH] fix default shell environment detection error --- bin/cocos | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/bin/cocos b/bin/cocos index 52107d12..faaaa654 100755 --- a/bin/cocos +++ b/bin/cocos @@ -1,4 +1,7 @@ -#!/bin/bash -l +#!/bin/bash +shell=${SHELL} + +#!${shell} -l COCOS_CONSOLE_BIN_DIRECTORY=$(dirname "$0") COCOS_CONSOLE_BIN_DIRECTORY=$(cd "$COCOS_CONSOLE_BIN_DIRECTORY" && pwd -P)