mirror of
https://github.com/YunoHost-Apps/homeassistant_ynh.git
synced 2024-09-03 19:26:16 +02:00
Fix linter issue
This commit is contained in:
parent
ffb6ab806a
commit
9ab841327d
1 changed files with 8 additions and 3 deletions
|
@ -147,11 +147,16 @@ myynh_install_homeassistant () {
|
|||
myynh_upgrade_venv_directory () {
|
||||
|
||||
# Remove old python links before recreating them
|
||||
find "$install_dir/bin/" -type l -name 'python*' -exec bash -c 'rm -f "$1"' _ {} \;
|
||||
find "$install_dir/bin/" -type l -name 'python*' \
|
||||
-exec bash -c 'ynh_secure_remove "$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 'rm -Rf "$1"' _ {} \;
|
||||
find "$install_dir/include/site/" -mindepth 1 -maxdepth 1 -type d -name "python*" -not -path "*/python${py_required_version%.*}" -exec bash -c 'rm -Rf "$1"' _ {} \;
|
||||
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"' _ {} \;
|
||||
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"' _ {} \;
|
||||
|
||||
# Upgrade the virtual environment directory
|
||||
ynh_exec_as $app $py_app_version -m venv --upgrade "$install_dir"
|
||||
|
|
Loading…
Reference in a new issue