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:
parent
6bbb0a34f5
commit
bf1a6d6a4e
1 changed files with 3 additions and 1 deletions
|
@ -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
|
||||
|
||||
#=================================================
|
||||
|
|
Loading…
Reference in a new issue