Skip to content

Commit

Permalink
Merge pull request #1083 from b1-systems/master
Browse files Browse the repository at this point in the history
Added better routine to install Busser+Plugins
  • Loading branch information
coderanger committed Oct 17, 2017
2 parents 424956a + e85baef commit 3d309bf
Showing 1 changed file with 10 additions and 3 deletions.
13 changes: 10 additions & 3 deletions support/busser_install_command.sh
@@ -1,4 +1,4 @@
$gem list busser -i 2>&1 >/dev/null
$gem list --no-versions | grep "^busser" 2>&1 >/dev/null
if test $? -ne 0; then
echo "-----> Installing Busser ($version)"
$gem install $gem_install_args
Expand All @@ -10,5 +10,12 @@ if test ! -f "$BUSSER_ROOT/bin/busser"; then
$busser setup
fi

echo " Installing Busser plugins: $plugins"
$busser plugin install $plugins
for plugin in $plugins; do
$gem list --no-versions | grep "^$plugin$" 2>&1 >/dev/null
if test $? -ne 0; then
echo "-----> Installing Busser plugin: $plugin"
$busser plugin install $plugin
else
echo "-----> Busser plugin detected: $plugin"
fi
done

0 comments on commit 3d309bf

Please sign in to comment.