From 0eb0d21007c6c0680f6b7a6d901c0875221adcd9 Mon Sep 17 00:00:00 2001 From: Hugo Sales Date: Sun, 5 Jul 2020 22:28:40 +0000 Subject: [PATCH] [TOOLS] Fix bootstrap and pre-commit scripts --- bin/bootstrap_certificates | 4 ++-- composer.json | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/bin/bootstrap_certificates b/bin/bootstrap_certificates index 1b9a0dd6bf..605ee99609 100755 --- a/bin/bootstrap_certificates +++ b/bin/bootstrap_certificates @@ -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 diff --git a/composer.json b/composer.json index b238ff8d29..aabf4f45fa 100644 --- a/composer.json +++ b/composer.json @@ -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"