mirror of
https://github.com/jimeh/dotify.git
synced 2026-02-19 10:06:39 +00:00
Make ROOT_DIR available in Dotfile
The ROOT_DIR variable is set to the directory the Dotfile is in.
This commit is contained in:
@@ -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 $?
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user