Skip to content
Snippets Groups Projects
Commit b459fb62 authored by jurgenhaas's avatar jurgenhaas
Browse files

Create .git/hooks directory if not present yet

parent bdc59bcc
No related branches found
Tags v2.4.1 v2.4.2
1 merge request!3Develop
......@@ -243,6 +243,9 @@ restoreEnvFile
# Configure Git Hook
if [[ -d .git ]]; then
if [[ ! -d .git/hooks ]]; then
mkdir -p .git/hooks
fi
if [[ ! -f .git/hooks/post-checkout ]]; then
echo "#!/bin/sh" > .git/hooks/post-checkout
chmod +x .git/hooks/post-checkout
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment