Skip to content

Commit

Permalink
Improve Post Commit Hook
Browse files Browse the repository at this point in the history
  • Loading branch information
abhishekjiitr committed Dec 24, 2019
1 parent b848912 commit 2d0d680
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions git/hooks/post-commit
Original file line number Diff line number Diff line change
Expand Up @@ -3,4 +3,11 @@
export GIT_DIR=${GIT_DIR-`git rev-parse --git-dir`}
echo $GIT_DIR

if [ -z $"GIT_DIR" ]; then
echo "Incorrect Usage... Run this script on root of repo"
exit 1
fi


echo "Running GNU Stow, Updating Symlinks..."
stow --adopt git mongodb tmux vim zsh

0 comments on commit 2d0d680

Please sign in to comment.