1
0
Fork 0
mirror of https://github.com/YunoHost-Apps/mygpo_ynh.git synced 2024-09-03 19:55:52 +02:00

Fix upgrade linter

This commit is contained in:
Salamandar 2024-03-05 11:00:54 +01:00
parent 6bbb0a34f5
commit bf1a6d6a4e

View file

@ -46,8 +46,10 @@ if [[ -n "${random_key:-}" ]]; then
fi
if [ -f "$install_dir/requirements.txt" ]; then
mkdir "$install_dir/sources"
# Move to $install_dir/sources
find "$install_dir" -maxdepth 1 -mindepth 1 -not -name envs -exec rm -rf {} +
find "$install_dir" -maxdepth 1 -mindepth 1 -not -name sources -exec mv {} "$install_dir/sources" +
mv "$install_dir/sources/envs" "$install_dir"
fi
#=================================================