Skip to content

Instantly share code, notes, and snippets.

@josketres josketres/bowerw
Last active Aug 29, 2015

What would you like to do?
Bower wrapper
#!/usr/bin/env bash
# Bower wrapper script for UN*X
command bower >/dev/null 2>&1 || {
echo "Global bower not found, using $bower_bin";
command $bower_bin >/dev/null 2>&1 || {
echo "$bower_bin not found, installing it";
npm install bower -g --prefix $HOME/.bowerw
command $bower_bin $*
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.