aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSilvio Rhatto <rhatto@riseup.net>2012-07-25 22:54:34 -0300
committerSilvio Rhatto <rhatto@riseup.net>2012-07-25 22:54:34 -0300
commit31942c8d98b481c9f59695f0008593902d7b21dd (patch)
treec27b6586159b3f63e35400cac4bacd441a1ce0ce
parent2446794988608213c9bae98b2e61b359c3facffa (diff)
downloadpuppet-drupal-31942c8d98b481c9f59695f0008593902d7b21dd.tar.gz
puppet-drupal-31942c8d98b481c9f59695f0008593902d7b21dd.tar.bz2
Ignoring site names without dots at drupal script
-rw-r--r--templates/drupal.sh.erb3
1 files changed, 2 insertions, 1 deletions
diff --git a/templates/drupal.sh.erb b/templates/drupal.sh.erb
index 826b0e0..62c9aef 100644
--- a/templates/drupal.sh.erb
+++ b/templates/drupal.sh.erb
@@ -59,8 +59,9 @@ function drupal_iterate {
fi
# Setup site folders with .onion sites in the end of the list
+ # and ignoring site names without dots
cd $base/sites
- drupals="`ls -I default -I all -I example.sites.php -I '*.onion'`"
+ drupals="`ls -1 -I default -I all -I example.sites.php -I '*.onion' | grep "\." | xargs`"
drupals="$drupals `ls -1 | grep '.onion$' | xargs`"
# Issue updates