Replace all dashes if more than one

This commit is contained in:
Chris Thompson 2020-07-21 22:41:10 -04:00
parent 89822149df
commit fe7947dfc5

View file

@ -76,17 +76,17 @@ cat << EOF > drush/sites/self.site.yml
live:
host: ${SERVER}
paths:
drush-script: /home/${MY_SITE/-/_}_live/site/vendor/bin/drush
root: /home/${MY_SITE/-/_}_live/site/web
drush-script: /home/${MY_SITE//-/_}_live/site/vendor/bin/drush
root: /home/${MY_SITE//-/_}_live/site/web
uri: 'https://${MY_SITE}-live.drutopia.org/'
user: ${MY_SITE/-/_}_live
user: ${MY_SITE//-/_}_live
test:
host: ${SERVER}
paths:
drush-script: /home/${MY_SITE/-/_}_test/site/vendor/bin/drush
root: /home/${MY_SITE/-/_}_test/site/web
drush-script: /home/${MY_SITE//-/_}_test/site/vendor/bin/drush
root: /home/${MY_SITE//-/_}_test/site/web
uri: 'https://${MY_SITE}-test.drutopia.org/'
user: ${MY_SITE/-/_}_test
user: ${MY_SITE//-/_}_test
EOF
```