handle EXCLUDE_DIRS in main script

This commit is contained in:
rupa committed 2014-03-26 13:02:21 -04:00
1 parent fac7b34e93
commit 7dbe2bd602
2 files changed
+8 -9

No files matched your search

-9
View File
@@ -35,15 +35,6 @@ int main(int argc, char **argv) {
/* Don't track $HOME */
if (strcmp(argv[1], getenv("HOME")) == 0) return EXIT_SUCCESS;
/*
TODO
# don't track excluded dirs
local exclude
for exclude in "${_Z_EXCLUDE_DIRS[@]}"; do
[ "$*" = "$exclude" ] && return
done
*/
_Z_DATA = getenv("_Z_DATA");
if( _Z_DATA == NULL ) {
sprintf(datafile, "%s/.z", getenv("HOME"));