Remove 'function' to define functions

/bin/sh doesn't like it...
This commit is contained in:
LoveIsGrief 2014-11-23 12:05:38 +01:00
parent 8839515af3
commit 6375e37cee

View File

@ -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))"
}