mirror of
https://github.com/jimeh/dotify.git
synced 2026-02-19 01:56: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
|
||||
if [ "$?" != "0" ]; then return 1; fi
|
||||
|
||||
ROOT_DIR="$(dirname "$DOTFILE")"
|
||||
|
||||
eval "$dotfile_source"
|
||||
return $?
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user