RetroDECK/automation_tools/force_update_submodules.sh
2023-12-12 12:25:19 +01:00

21 lines
722 B
Bash
Executable file

#!/bin/bash
# WARNING: DANGEROUS! Don't use this script lightly
git submodule deinit --all
rm rd-submodules/retroarch
git rm -rf --cached rd-submodules/retroarch
rm -rf .git/modules/rd-submodules/retroarch
rm rd-submodules/ryujinx
git rm -rf --cached rd-submodules/ryujinx
rm -rf .git/modules/rd-submodules/ryujinx
rm -rf shared-modules
git rm -rf --cached shared-modules
rm -rf .git/modules/shared-modules
git submodule init
git submodule add https://github.com/flathub/shared-modules.git
git submodule add https://github.com/flathub/org.libretro.RetroArch rd-submodules/retroarch
git submodule add https://github.com/flathub/org.ryujinx.Ryujinx rd-submodules/ryujinx
git submodule update --remote --merge --recursive