From 944d13ef8af6b7a9e5d72ed472e769bbefaa68b4 Mon Sep 17 00:00:00 2001 From: ewilly Date: Thu, 12 Oct 2023 18:35:22 +0200 Subject: [PATCH] Fix linter issue --- scripts/_common.sh | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/scripts/_common.sh b/scripts/_common.sh index abe77d9..7fcff99 100644 --- a/scripts/_common.sh +++ b/scripts/_common.sh @@ -148,15 +148,15 @@ myynh_upgrade_venv_directory () { # Remove old python links before recreating them find "$install_dir/bin/" -type l -name 'python*' \ - -exec bash -c 'ynh_secure_remove "$1"' _ {} \; + -exec bash -c 'rm --force "$1"' _ {} \; # Remove old python directories before recreating them find "$install_dir/lib/" -mindepth 1 -maxdepth 1 -type d -name "python*" \ -not -path "*/python${py_required_version%.*}" \ - -exec bash -c 'ynh_secure_remove "$1"' _ {} \; + -exec bash -c 'rm --force --recursive "$1"' _ {} \; find "$install_dir/include/site/" -mindepth 1 -maxdepth 1 -type d -name "python*" \ -not -path "*/python${py_required_version%.*}" \ - -exec bash -c 'ynh_secure_remove "$1"' _ {} \; + -exec bash -c 'rm --force --recursive "$1"' _ {} \; # Upgrade the virtual environment directory ynh_exec_as $app $py_app_version -m venv --upgrade "$install_dir"