From 06b81f0f367d15c9782a25631b81ceb88904af18 Mon Sep 17 00:00:00 2001 From: Thomas Levine <_@thomaslevine.com> Date: Mon, 8 Feb 2016 15:29:09 +0000 Subject: [PATCH 1/2] use env bash rather than /bin/bash My bash is not installed in /bin/bash. --- ...vm use x\" should create and change the \"current\" symlink" | 2 +- ...te the \"current\" symlink if $NVM_SYMLINK_CURRENT is false" | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git "a/test/fast/Running \"nvm use x\" should create and change the \"current\" symlink" "b/test/fast/Running \"nvm use x\" should create and change the \"current\" symlink" index d5fda3c..fcc4acb 100755 --- "a/test/fast/Running \"nvm use x\" should create and change the \"current\" symlink" +++ "b/test/fast/Running \"nvm use x\" should create and change the \"current\" symlink" @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash export NVM_SYMLINK_CURRENT=true . ../../nvm.sh diff --git "a/test/fast/Running \"nvm use x\" should not create the \"current\" symlink if $NVM_SYMLINK_CURRENT is false" "b/test/fast/Running \"nvm use x\" should not create the \"current\" symlink if $NVM_SYMLINK_CURRENT is false" index 4ac8b4b..3603e04 100755 --- "a/test/fast/Running \"nvm use x\" should not create the \"current\" symlink if $NVM_SYMLINK_CURRENT is false" +++ "b/test/fast/Running \"nvm use x\" should not create the \"current\" symlink if $NVM_SYMLINK_CURRENT is false" @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash . ../../nvm.sh From 0eaa7e0bdedf2f2340c1cf4bd342da361abc2585 Mon Sep 17 00:00:00 2001 From: Thomas Levine <_@thomaslevine.com> Date: Sun, 14 Feb 2016 10:07:10 +0000 Subject: [PATCH 2/2] use env bash in nvm-exec and install.sh --- install.sh | 2 +- nvm-exec | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/install.sh b/install.sh index c1da5b5..27b6333 100755 --- a/install.sh +++ b/install.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash { # this ensures the entire script is downloaded # diff --git a/nvm-exec b/nvm-exec index e92d4aa..0d28870 100755 --- a/nvm-exec +++ b/nvm-exec @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash DIR="$(command cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )"