Skip to content

Commit fe295ca

Browse files
ruscurajdlinux
authored andcommitted
setup_rustfmt_hook: create hooks dir if it doesn't exist
Signed-off-by: Russell Currey <[email protected]> Signed-off-by: Andrew Donnellan <[email protected]>
1 parent 7a52b41 commit fe295ca

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

setup_rustfmt_hook.sh

+1
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22
rustup component add rustfmt-preview
33

44
rustfmt_path=`which rustfmt`
5+
mkdir -p .git/hooks
56
echo "#!/bin/bash
67
declare -a rust_files=()
78
files=\$(git diff-index --name-only HEAD)

0 commit comments

Comments
 (0)