thenbrent / multisite-user-management

In a Multisite WordPress, automatically add new users to each of your sites.
http://wordpress.org/extend/plugins/multisite-user-management/
GNU General Public License v2.0
122 stars 30 forks source link

make deploy.sh cross platform #19

Closed mrjones-plip closed 9 years ago

mrjones-plip commented 9 years ago

right now deploy.sh assumes you're on Ubuntu (or a linux system with dpkg-query installed) with this line:

if [ $(dpkg-query -W -f='${Status}' subversion 2>/dev/null | grep -c "ok installed") != "1" ]

After confirming subversion always has a 3 digit version (well, for the last 11 years), I believe this line would work on all platforms. It's what I use on my mac:

if [ $(svn --version --quiet|egrep -c '^[0-9]+\.[0-9]+\.[0-9]+$' 2>/dev/null) != "1" ]

thenbrent commented 9 years ago

@Ths2-9Y-LqJt6 thanks for the report. The .deploy.sh script is only a small part of this repo and it's been extended and enhanced much more by others beyond what I have here.

You might have better luck using one of these:

mrjones-plip commented 9 years ago

@thenbrent - cool cool, makes sense. Thanks for the update!