mirror of
https://github.com/nvm-sh/nvm.git
synced 2025-07-04 14:33:44 +00:00
Revert misplaced commit in 'Include actions for fish when installing'
The DIR variable is used in another branch (vagrant) and doesn't belong here
This commit is contained in:
parent
67a70e6dc2
commit
78069717f7
10
install.sh
10
install.sh
@ -1,15 +1,5 @@
|
|||||||
#!/bin/bash
|
#!/bin/bash
|
||||||
|
|
||||||
# Get this script after dereferincing all symlinks
|
|
||||||
# !! Doesn't check for circular symlinks !!
|
|
||||||
SOURCE="${BASH_SOURCE[0]}"
|
|
||||||
while [ -h "$SOURCE" ]; do # resolve $SOURCE until the file is no longer a symlink
|
|
||||||
DIR="$( cd -P "$( dirname "$SOURCE" )" && pwd )"
|
|
||||||
SOURCE="$(readlink "$SOURCE")"
|
|
||||||
[[ $SOURCE != /* ]] && SOURCE="$DIR/$SOURCE" # if $SOURCE was a relative symlink, we need to resolve it relative to the path where the symlink file was located
|
|
||||||
done
|
|
||||||
DIR="$( cd -P "$( dirname "$SOURCE" )" && pwd )"
|
|
||||||
|
|
||||||
set -e
|
set -e
|
||||||
|
|
||||||
nvm_has() {
|
nvm_has() {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user