Skip to content

Instantly share code, notes, and snippets.

@steveh
Last active August 29, 2015 13:56
Show Gist options
  • Save steveh/9081072 to your computer and use it in GitHub Desktop.
Save steveh/9081072 to your computer and use it in GitHub Desktop.
All the things
#!/bin/sh
# Installation: save to /usr/local/bin/allthethings
# and chmod +x /usr/local/bin/allthethings
# Usage: allthethings update
# allthethings install
if [ -f "Gemfile" ]; then
echo "bundler"
bundle $1
fi
if [ -f "Vendorfile" ]; then
echo "vendorer"
vendorer $1
fi
if [ -f "composer.json" ]; then
echo "composer"
composer $1
fi
if [ -f "package.json" ]; then
echo "npm"
npm $1
fi
if [ -f "bower.json" ]; then
echo "bower"
bower $1
fi
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment