aboutsummaryrefslogtreecommitdiff
path: root/files/drupal
diff options
context:
space:
mode:
Diffstat (limited to 'files/drupal')
-rwxr-xr-xfiles/drupal8
1 files changed, 6 insertions, 2 deletions
diff --git a/files/drupal b/files/drupal
index 644b776..d51fd10 100755
--- a/files/drupal
+++ b/files/drupal
@@ -38,7 +38,9 @@ function drupal_get_major {
# Check for existing installations
function drupal_check_existing {
if [ -e "$BASE/drupal-$1" ]; then
- echo "Folder $BASE/drupal-$1 already exists, skipping"
+ if [ "$SILENT" != "yes" ]; then
+ echo "Folder $BASE/drupal-$1 already exists, skipping"
+ fi
exit
fi
}
@@ -46,7 +48,9 @@ function drupal_check_existing {
# Check for non existing installations
function drupal_check_not_existing {
if [ ! -e "$BASE/drupal-$1" ]; then
- echo "Folder $BASE/drupal-$1 does not exist, skipping"
+ if [ "$SILENT" != "yes" ]; then
+ echo "Folder $BASE/drupal-$1 does not exist, skipping"
+ fi
exit 1
fi
}