Skip to content

Commit 467b4b9

Browse files
chore: doc refactoring for init_hooks.sh
1 parent 47288df commit 467b4b9

File tree

1 file changed

+5
-6
lines changed

1 file changed

+5
-6
lines changed

.githooks/init_hooks.sh

Lines changed: 5 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,8 @@
11
#!/bin/sh
2-
# Creates symlinks of hooks in .githooks directory in .git/hooks
3-
# If user already has hooks in .git/hooks then hooks from .githooks
4-
# will be added as separate files with different names and a command
5-
# to run these hooks will be added to the respective existing hooks
6-
# on the last line of the file.
2+
# Creates hooks in .git/hooks directory based on the hooks available in .githooks.
3+
# If user already has hooks in .git/hooks then hooks from .githooks will be added
4+
# as separate files with different names and a command to run these hooks will be
5+
# added to the respective existing hooks on the last line of the file.
76

87
current_dir=${PWD##*/}
98

@@ -42,4 +41,4 @@ do
4241
else
4342
echo "${hook} is already linked."
4443
fi
45-
done
44+
done

0 commit comments

Comments
 (0)