diff --git a/.github/workflows/flathub_push_cooker.yml b/.github/workflows/flathub_push_cooker.yml index b146e2ea..a204c5c1 100644 --- a/.github/workflows/flathub_push_cooker.yml +++ b/.github/workflows/flathub_push_cooker.yml @@ -60,7 +60,9 @@ jobs: $gits_folder/flathub/ cd $gits_folder/flathub - rm -rfv .git/modules/* + if [ -d .git/modules ]; then + rm -rfv .git/modules/* + fi # Adding the real submodules, please update this every time a submodule is added if [ -d shared-modules ]; then git rm -rf shared-modules