Fixed a chdir error
Fixed a chdir error

Fixed an issue where the script would try to chdir even if the directory doesn't exist. Now the script checks for the directory's existence beforehand.

cedwardsmedia/git-timeline,cedwardsmedia/git-timeline