From 48d66bfebe29f4f1abaf640cb27edd0541447200 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=C3=89tienne=20Deparis?= Date: Tue, 8 Jan 2019 11:47:11 +0100 Subject: [PATCH] Try to fix Upgrade CI test --- scripts/upgrade | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/upgrade b/scripts/upgrade index 8f70898..550bbb0 100644 --- a/scripts/upgrade +++ b/scripts/upgrade @@ -105,7 +105,7 @@ ynh_system_user_create $app if [ -d $final_path/lib/python2.7 ]; then # The old python2 venv is there, we need to remove it first rm -r $final_path/bin $final_path/lib $final_path/include - rm $final_path/pip-selfcheck.json + [ -f $final_path/pip-selfcheck.json ] && rm $final_path/pip-selfcheck.json else rm -r $final_path/lib/python3.5/site-packages/setuptools $final_path/lib/python3.5/site-packages/setuptools-* fi