From 659654ec25156701af5303179717485e332122f3 Mon Sep 17 00:00:00 2001 From: ericgaspar Date: Fri, 15 Jan 2021 23:53:09 +0100 Subject: [PATCH] Update upgrade --- scripts/upgrade | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/scripts/upgrade b/scripts/upgrade index a0b34c2..e0fe994 100644 --- a/scripts/upgrade +++ b/scripts/upgrade @@ -112,12 +112,12 @@ ynh_script_progression --message="Upgrading Searx..." --weight=7 # Clean venv if it still on python2 if [ ! -e $final_path/bin/python3 ] then - ynh_secure_remove --file=$final_path/lib/ --regex='python[^/.]*' - ynh_secure_remove --file=$final_path/lib64/ --regex='python[^/.]*' - ynh_secure_remove --file=$final_path/share/python-wheels + ynh_regex_secure_remove --file=$final_path/lib/ --regex='python[^/.]*' + ynh_regex_secure_remove --file=$final_path/lib64/ --regex='python[^/.]*' + ynh_regex_secure_remove --file=$final_path/share/python-wheels fi -ynh_secure_remove --file=$final_path/lib/python3/site-packages/setuptools -ynh_secure_remove --file=$final_path/lib/python3/site-packages/ --regex='setuptools-[^/.]*' +ynh_regex_secure_remove --file=$final_path/lib/python3/site-packages/setuptools +ynh_regex_secure_remove --file=$final_path/lib/python3/site-packages/ --regex='setuptools-[^/.]*' python3 -m venv --system-site-packages "$final_path"