Skip to content
Snippets Groups Projects
Commit 450f7a64 authored by Vincent Hatakeyama's avatar Vincent Hatakeyama
Browse files

:pencil: clean up static dir too

parent 250f9d27
No related branches found
No related tags found
No related merge requests found
...@@ -8,6 +8,7 @@ ...@@ -8,6 +8,7 @@
# TODO add a way to bypass the value, maybe with a key in the setup.cfg file # TODO add a way to bypass the value, maybe with a key in the setup.cfg file
here=$(dirname $0) here=$(dirname $0)
project_home=$(cd $here && cd .. && echo $PWD) project_home=$(cd $here && cd .. && echo $PWD)
static_dir=$project_home/static/
if type "python3" > /dev/null; if type "python3" > /dev/null;
then then
odoo_modules="$(python3 -B -c "import configparser ; c = configparser.ConfigParser() ; c.read('${project_home}/setup.cfg') ; print (c.has_option('odoo_scripts', 'modules') and ' '.join(c.get('odoo_scripts', 'modules').split()) or '')")" odoo_modules="$(python3 -B -c "import configparser ; c = configparser.ConfigParser() ; c.read('${project_home}/setup.cfg') ; print (c.has_option('odoo_scripts', 'modules') and ' '.join(c.get('odoo_scripts', 'modules').split()) or '')")"
...@@ -20,5 +21,6 @@ ...@@ -20,5 +21,6 @@
then then
rm -rf $project_home/odoo_modules rm -rf $project_home/odoo_modules
rm -f $project_home/odoo_modules_list rm -f $project_home/odoo_modules_list
rm -rf $static_dir
fi fi
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment