[TOOLS] Fix bootstrap and pre-commit scripts
This commit is contained in:
parent
4d92915846
commit
0eb0d21007
|
@ -4,13 +4,13 @@ printf "Domain root: "
|
|||
read -r domain_root
|
||||
printf "Subdomain (can be empty): "
|
||||
read -r sub_domain
|
||||
read -r signed
|
||||
printf "Use certificate signed by Let's Encrypt (Y/n): "
|
||||
read -r signed
|
||||
|
||||
[ "${signed}" = "${signed#[Yy]}" ]
|
||||
signed=$?
|
||||
|
||||
if [ $signed ]; then
|
||||
if [ $signed -ne 0 ]; then
|
||||
printf "Email: "
|
||||
read -r email
|
||||
fi
|
||||
|
|
|
@ -78,7 +78,7 @@
|
|||
},
|
||||
"post-install-cmd": [
|
||||
"@auto-scripts",
|
||||
"cp -n bin/pre-commit .git/hooks"
|
||||
"cp -fu bin/pre-commit .git/hooks"
|
||||
],
|
||||
"post-update-cmd": [
|
||||
"@auto-scripts"
|
||||
|
|
Loading…
Reference in New Issue
Block a user