Skip to content

Commit fc41e20

Browse files
create git hooks directory if necessary
1 parent d40785d commit fc41e20

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

formatter/install-pre-commit-hook.sh

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22

33
FORMATTER_DIR="$(dirname $0)"
44
GIT_HOOK_DIR="$FORMATTER_DIR/../.git/hooks"
5+
mkdir -p $GIT_HOOK_DIR
56
cp $FORMATTER_DIR/pre-commit $GIT_HOOK_DIR/pre-commit
67
chmod +x $GIT_HOOK_DIR/pre-commit
78
curl -o $GIT_HOOK_DIR/tvdformat.jar -L https://github.com/Trivadis/plsql-formatter-settings/releases/download/sqldev-22.2.0/tvdformat.jar

0 commit comments

Comments
 (0)