From bf1a6d6a4ecc61e5d9fb3c78ed8ec50e7564c053 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?F=C3=A9lix=20Pi=C3=A9dallu?= Date: Tue, 5 Mar 2024 11:00:54 +0100 Subject: [PATCH] Fix upgrade linter --- scripts/upgrade | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/scripts/upgrade b/scripts/upgrade index 205a5bf..4a88d25 100644 --- a/scripts/upgrade +++ b/scripts/upgrade @@ -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 #=================================================