Permalink
Browse files

Making _ANTIGEN_INSTALL_DIR use absolute path.

This will prevent errors if someone sources antigen using a relative
path.
  • Loading branch information...
jmatth committed Mar 13, 2013
1 parent b7d2d3e commit e393155e3391f243d7fc01c4a9a04f74a29b9095
Showing with 1 addition and 1 deletion.
  1. +1 −1 antigen.zsh
View
@@ -5,7 +5,7 @@
# <repo-url>, <plugin-location>, <bundle-type>, <has-local-clone>
# FIXME: Is not kept local by zsh!
local _ANTIGEN_BUNDLE_RECORD=""
-local _ANTIGEN_INSTALL_DIR="$(dirname $0)"
+local _ANTIGEN_INSTALL_DIR="$( cd "$( dirname "$0" )" && pwd )"
# Syntaxes
# antigen-bundle <url> [<loc>=/]

0 comments on commit e393155

Please sign in to comment.