From f36cb3d7feb171813d003a9dcd1d322704d0a109 Mon Sep 17 00:00:00 2001 From: Silvio Rhatto Date: Fri, 29 Dec 2017 23:25:28 -0200 Subject: Silent autoupgrades --- files/drupal | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) (limited to 'files/drupal') 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 } -- cgit v1.2.3