From 839c497d29eca28b70ffdfda31b2d540170e4008 Mon Sep 17 00:00:00 2001 From: Lloyd Watkin Date: Thu, 24 Jul 2014 22:52:22 +0100 Subject: [PATCH] Because ubuntu seems to have NVM_DIR set to /usr/sbin --- nvm.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/nvm.sh b/nvm.sh index f7d3f32..c161832 100644 --- a/nvm.sh +++ b/nvm.sh @@ -39,7 +39,7 @@ if nvm_has "unsetopt"; then fi # Auto detect the NVM_DIR when not set -if [ -z "$NVM_DIR" ]; then +if [ -z "$NVM_DIR" ] || [[ -n $(uname -a | grep Ubuntu) ]]; then if [ -n "$BASH_SOURCE" ]; then NVM_SCRIPT_SOURCE="${BASH_SOURCE[0]}" fi