Skip to content

Commit d0967c3

Browse files
committed
Fix git hook installation script
1 parent 793c7a3 commit d0967c3

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

install_git_hooks.sh

+2-2
Original file line numberDiff line numberDiff line change
@@ -5,15 +5,15 @@ SCRIPT_FILE_DIR=`cd $SCRIPT_FILE_DIR; pwd`
55

66
HOOKS_GIT_DIR="$SCRIPT_FILE_DIR/.git/hooks"
77

8-
if [ ! -d $"$HOOKS_GIT_DIR" ]; then
8+
if [ ! -d "$HOOKS_GIT_DIR" ]; then
99
mkdir -p "$HOOKS_GIT_DIR"
1010
fi
1111

1212
for file in "$SCRIPT_FILE_DIR"/git_hooks/*; do
1313
file_name=`basename $file`
1414
destination_file="$HOOKS_GIT_DIR/$file_name"
1515

16-
if [ -f "$destination_file" ]; then
16+
if [ -L "$destination_file" ]; then
1717
rm -f "$destination_file"
1818
fi
1919
ln -s "$file" "$destination_file"

0 commit comments

Comments
 (0)