summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorHerman van Rink2015-07-19 19:44:11 (GMT)
committerHerman van Rink2015-07-19 19:44:17 (GMT)
commitb582b2abb241eda14b924366c62403741508c607 (patch)
tree0cb8f1dab10feeda4e596264713555865e3e1253
parent45d40cdaa3bc790983af478304eeb297007bb540 (diff)
remove a trailing new-line char
-rw-r--r--debian/aegir3-hostmaster.postinst4
1 files changed, 2 insertions, 2 deletions
diff --git a/debian/aegir3-hostmaster.postinst b/debian/aegir3-hostmaster.postinst
index 57dd58d..4e7e225 100644
--- a/debian/aegir3-hostmaster.postinst
+++ b/debian/aegir3-hostmaster.postinst
@@ -58,8 +58,8 @@ case "$1" in
# flush the drush cache to find new commands
su -s /bin/sh aegir -c 'drush cc drush'
- site_uri=`drush @hostmaster status --fields="uri" --field-labels=0 | sed -e 's/^[[:space:]]*//g' -e 's/[[:space:]]*\$//g'`
- drupal_root=`drush @hostmaster status --fields="root" --field-labels=0 | sed -e 's/^[[:space:]]*//g' -e 's/[[:space:]]*\$//g'`
+ site_uri=`su -s /bin/sh aegir -c 'drush @hostmaster status --fields="uri" --field-labels=0 | tr "\n" " " | sed -e "s/^[[:space:]]*//g" -e "s/[[:space:]]*\$//g"'`
+ drupal_root=`su -s /bin/sh aegir -c 'drush @hostmaster status --fields="root" --field-labels=0 | tr "\n" " " | sed -e "s/^[[:space:]]*//g" -e "s/[[:space:]]*\$//g"'`
if [ -n $drupal_root ]; then
# upgrade