diff --git a/scripts/_common.sh b/scripts/_common.sh index 7631af9..c852c75 100644 --- a/scripts/_common.sh +++ b/scripts/_common.sh @@ -35,7 +35,9 @@ _build_install_framagames() { ynh_secure_remove --file="$install_dir/www" mv -f "$install_dir/sources/dist" "$install_dir/www" cp -r "$install_dir/sources/games/"* "$install_dir/www" - mv -f "$install_dir/www/framagames/"* "$install_dir/www" + if [[ "$path" != "/" ]]; then + mv -f "$install_dir/www/$path/"* "$install_dir/www" + fi } #=================================================