RetroDECK/automation_tools/force-update-submodules.sh
2023-08-31 14:32:36 +02:00

17 lines
506 B
Bash

#!/bin/bash
# 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 -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 update --remote --merge --recursive