From 6375e37ceeff55e0436fddb99329e3bc5dada333 Mon Sep 17 00:00:00 2001 From: LoveIsGrief Date: Sun, 23 Nov 2014 12:05:38 +0100 Subject: [PATCH] Remove 'function' to define functions /bin/sh doesn't like it... --- install.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/install.sh b/install.sh index f46a3d0..6bebf3d 100755 --- a/install.sh +++ b/install.sh @@ -6,7 +6,7 @@ set -e # Get's the path of the current script calling the function # !! Doesn't check for circular symlinks !! # e.g /tmp/path/to/script.sh -function nvm_script_path(){ +nvm_script_path(){ SOURCE=$0 while [ -h "$SOURCE" ]; do # resolve $SOURCE until the file is no longer a symlink DIR="$( cd -P "$( dirname "$SOURCE" )" && pwd )" @@ -19,7 +19,7 @@ function nvm_script_path(){ } # Get the directory of the current script -function nvm_script_dir(){ +nvm_script_dir(){ echo "$( dirname $(nvm_script_path))" }