We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 793c7a3 commit d0967c3Copy full SHA for d0967c3
install_git_hooks.sh
@@ -5,15 +5,15 @@ SCRIPT_FILE_DIR=`cd $SCRIPT_FILE_DIR; pwd`
5
6
HOOKS_GIT_DIR="$SCRIPT_FILE_DIR/.git/hooks"
7
8
-if [ ! -d $"$HOOKS_GIT_DIR" ]; then
+if [ ! -d "$HOOKS_GIT_DIR" ]; then
9
mkdir -p "$HOOKS_GIT_DIR"
10
fi
11
12
for file in "$SCRIPT_FILE_DIR"/git_hooks/*; do
13
file_name=`basename $file`
14
destination_file="$HOOKS_GIT_DIR/$file_name"
15
16
- if [ -f "$destination_file" ]; then
+ if [ -L "$destination_file" ]; then
17
rm -f "$destination_file"
18
19
ln -s "$file" "$destination_file"
0 commit comments