Skip to content

Instantly share code, notes, and snippets.

@dryan
Created August 8, 2014 21:38
Show Gist options
  • Save dryan/8a111eeac8ce31173148 to your computer and use it in GitHub Desktop.
Save dryan/8a111eeac8ce31173148 to your computer and use it in GitHub Desktop.
update dependencies on git merge
#!/bin/bash
if [ -f 'package.json' ];
then
npm install
fi
if [ -f 'bower.json' ];
then
bower install
fi
if [ -f 'requirements.txt' ];
then
pip install -r requirements.txt
fi
@bobwaycott
Copy link

Update based on current/expected project layout

#!/bin/bash
if [ -f 'requirements/package.json' ];
then
npm install
fi
if [ -f 'requirements/bower.json' ];
then
bower install
fi
if [ -f 'requirements/pip.txt' ];
then
pip install -r requirements/pip.txt
fi

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment