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:
LoveIsGrief 2014-11-16 15:28:16 +01:00
parent 67a70e6dc2
commit 78069717f7

View File

@ -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() {