diff --git a/scripts/sudo-bot/create-pr.sh b/scripts/sudo-bot/create-pr.sh index 7f8c4e9..27918df 100755 --- a/scripts/sudo-bot/create-pr.sh +++ b/scripts/sudo-bot/create-pr.sh @@ -23,8 +23,8 @@ moveBuildToTempFolder() { cleanGhPages() { git checkout gh-pages git ls-files ./ | xargs -r -n 1 rm -v - find ./ -print - rm -rfdv ./* + # Delete remaining files + find ./ -not -path '*/.git/*' -not -path '*/.github/*' -print -delete } moveBuildFilesToCurrentDir() {