From efd6abaf993cabae76431330114968c44caef164 Mon Sep 17 00:00:00 2001 From: ewilly Date: Fri, 23 Jun 2023 15:06:04 +0200 Subject: [PATCH] Fix upgrade --- scripts/_common.sh | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/scripts/_common.sh b/scripts/_common.sh index d3f60e4..407873b 100644 --- a/scripts/_common.sh +++ b/scripts/_common.sh @@ -147,10 +147,7 @@ myynh_install_homeassistant () { myynh_upgrade_venv_directory () { # Remove old python links before recreating them - for i in `find "$install_dir/bin/" -type l -name 'python*'` - do - ynh_secure_remove --file="$i" - done + find "$install_dir/bin/" -type l -name 'python*' -exec bash -c 'rm -f "$1"' _ {} \; # Upgrade the virtual environment directory ynh_exec_as $app $py_app_version -m venv --upgrade "$install_dir"