From 9623d6a97b2569706649c4f19f9bac7fd4bba4ff Mon Sep 17 00:00:00 2001
From: Antonio Ospite <ao2@ao2.it>
Date: Sat, 10 Mar 2018 22:15:24 +0100
Subject: [PATCH] clean.sh: make sudo always ask for the password

Passing the --reset-timestamp option to sudo makes it ignore the cached
credentials and always ask for a password.

This is done to provide the user a second chance to think about what
they are doing, as the removal can be fairly destructive for
a development site.
---
 libexec/clean.sh | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/libexec/clean.sh b/libexec/clean.sh
index b1b4c16..794e221 100755
--- a/libexec/clean.sh
+++ b/libexec/clean.sh
@@ -57,4 +57,4 @@ run() {
   "$@"
 }
 
-[ "$INPUT" = "$CONFIRMATION_STRING" ] && run sudo rm -rf config/ web/ vendor/ composer.lock
+[ "$INPUT" = "$CONFIRMATION_STRING" ] && run sudo --reset-timestamp rm -rf config/ web/ vendor/ composer.lock
-- 
2.1.4