projects
/
drupal-init-tools.git
/ blobdiff
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
drin.rst: change title of NOTES section to reflect it's about the database
[drupal-init-tools.git]
/
libexec
/
clean.sh
diff --git
a/libexec/clean.sh
b/libexec/clean.sh
index
cd33b60
..
794e221
100755
(executable)
--- a/
libexec/clean.sh
+++ b/
libexec/clean.sh
@@
-43,6
+43,8
@@
do
shift
done
shift
done
+[ -f "bootstrap.conf" ] || { echo "Aborting, run this command from the Drupal project directory." 1>&2; exit 1; }
+
CONFIRMATION_STRING="YESIAMSURE"
echo "WARNING! This removes any files in the config/ web/ and vendor/ directories."
CONFIRMATION_STRING="YESIAMSURE"
echo "WARNING! This removes any files in the config/ web/ and vendor/ directories."
@@
-55,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