Make ROOT_DIR available in Dotfile

The ROOT_DIR variable is set to the directory the Dotfile is in.
This commit is contained in:
2013-10-21 01:33:06 +01:00
parent bcf914026a
commit 80f47384c4

View File

@@ -4,6 +4,8 @@ execute-dotfile() {
locate-target locate-target
if [ "$?" != "0" ]; then return 1; fi if [ "$?" != "0" ]; then return 1; fi
ROOT_DIR="$(dirname "$DOTFILE")"
eval "$dotfile_source" eval "$dotfile_source"
return $? return $?
} }