Skip to content

Instantly share code, notes, and snippets.

@tkdb
Created June 18, 2014 10:21
Show Gist options
  • Save tkdb/6e2982463ff225ca4b7b to your computer and use it in GitHub Desktop.
Save tkdb/6e2982463ff225ca4b7b to your computer and use it in GitHub Desktop.
#!/bin/bash
#
# https://github.com/magento-hackathon/magento-composer-installer/issues/107
# ensure stats is installed
composer install --no-dev
# "[require] the new pacakge scenario"
composer require "fbrnc/aoe_scheduler:*" | sed -e 's/^/ /'
echo ""
# "[update] run the update
echo "update --no-plugins"
composer update --no-plugins --no-dev "magento-hackathon/magento-composer-installer"
echo "update"
composer update
# reset
echo "[reset] checkout composer.lock to shutdown the scenario"
(git checkout -- composer.json composer.lock && composer install --no-dev) | sed -e 's/^/ /'
echo ""
[ ${?} ] || exit;
echo "[clean] removing new files within magento/*"
git clean -f magento | sed -e 's/^/ /'
echo ""
echo "done."
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment