[TOOLS] Fix bootstrap and pre-commit scripts

This commit is contained in:
Hugo Sales 2020-07-05 22:28:40 +00:00 committed by Hugo Sales
parent 4d92915846
commit 0eb0d21007
Signed by: someonewithpc
GPG Key ID: 7D0C7EAFC9D835A0
2 changed files with 3 additions and 3 deletions

View File

@ -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

View File

@ -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"