From b9c330f3922cd80e815541c59be8fb152bfb6d69 Mon Sep 17 00:00:00 2001 From: Krakinou Date: Sun, 9 May 2021 17:08:24 +0200 Subject: [PATCH] cp instead of move --- scripts/upgrade | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/scripts/upgrade b/scripts/upgrade index a5828b0..73d0c75 100755 --- a/scripts/upgrade +++ b/scripts/upgrade @@ -60,6 +60,8 @@ then ynh_setup_source --dest_dir="$final_path" --source_id=$app #7z archive not handled by ynh and no way to strip component, have to move it manually 7zr x $final_path/retroarch.7z -o$final_path + #mv not working as target directory is not empty + cp -R $final_path/retroarch/* $final_path/ mv $final_path/retroarch/* $final_path/ ynh_secure_remove --file="$final_path/retroarch.7z" ynh_secure_remove --file="$final_path/retroarch" @@ -86,7 +88,8 @@ chmod 644 "$cron_path" ynh_script_progression --message="Setting up Multimedia directory..." --weight=9 ynh_multimedia_build_main_dir -ynh_multimedia_addfolder --source_dir="$final_path/assets/cores" --dest_dir="/share/Game" +mkdir -p $final_path/assets/cores/Game +ynh_multimedia_addfolder --source_dir="$final_path/assets/cores/Game" --dest_dir="/share/Game" #================================================= # NGINX CONFIGURATION