#!/bin/zsh # vim: set shiftwidth=4 softtabstop=4: # Create docker script (clean) # template version 2.7 # TODO add a way to bypass the value, maybe with a key in the setup.cfg file here=$(dirname $0) project_home=$(cd $here && cd .. && echo $PWD) odoo_modules="$(python -B -c "import ConfigParser ; c = ConfigParser.SafeConfigParser() ; c.read('${project_home}/setup.cfg') ; print (c.has_option('odoo_scripts', 'modules') and ' '.join(c.get('odoo_scripts', 'modules').split()) or '')")" # Delete odoo modules temp directory if [[ -n $odoo_modules ]]; then rm -rf $project_home/odoo_modules fi