From a1ab428a2b2bc025c9a87c04366a2ec7ddc7addb Mon Sep 17 00:00:00 2001 From: jensenzhang Date: Thu, 1 Sep 2016 08:59:58 +0800 Subject: [PATCH] Fix issue #76 Reset the CWD to $C9_DIR once installing a new package. Signed-off-by: jensenzhang --- install.sh | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/install.sh b/install.sh index 73a36c4..bf231e1 100755 --- a/install.sh +++ b/install.sh @@ -116,16 +116,17 @@ start() { mkdir -p "$C9_DIR"/bin mkdir -p "$C9_DIR"/tmp mkdir -p "$C9_DIR"/node_modules - cd "$C9_DIR" # install packages while [ $# -ne 0 ] do if [ "$1" == "tmux" ]; then + cd "$C9_DIR" time tmux_install $os $arch shift continue fi + cd "$C9_DIR" time eval ${1} $os $arch shift done