projects
/
drupal-init-tools.git
/ commitdiff
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
4a19890
)
Check that the "bootstrap" and "clean" subcommands are run in the project dir
v0.1.0
author
Antonio Ospite <ao2@ao2.it>
Mon, 18 Dec 2017 15:44:37 +0000
(16:44 +0100)
committer
Antonio Ospite <ao2@ao2.it>
Mon, 18 Dec 2017 15:44:37 +0000
(16:44 +0100)
libexec/bootstrap.sh
patch
|
blob
|
history
libexec/clean.sh
patch
|
blob
|
history
diff --git
a/libexec/bootstrap.sh
b/libexec/bootstrap.sh
index
6d26c2e
..
422fafe
100755
(executable)
--- a/
libexec/bootstrap.sh
+++ b/
libexec/bootstrap.sh
@@
-52,6
+52,8
@@
do
shift
done
shift
done
+[ -f "bootstrap.conf" ] || { echo "Aborting, run this command from the Drupal project directory." 1>&2; exit 1; }
+
# shellcheck disable=SC1091
. bootstrap.conf
# shellcheck disable=SC1091
. bootstrap.conf
diff --git
a/libexec/clean.sh
b/libexec/clean.sh
index
cd33b60
..
b1b4c16
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."