From cb080da513e2986d79f99b26bc6f93206ba2e9e6 Mon Sep 17 00:00:00 2001 From: sync2gitee Date: Fri, 8 Mar 2024 16:38:44 +0800 Subject: [PATCH] fix sync shell --- .github/workflows/gitee-sync-shell.sh | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/.github/workflows/gitee-sync-shell.sh b/.github/workflows/gitee-sync-shell.sh index a1f9d6c9d..61700cd43 100755 --- a/.github/workflows/gitee-sync-shell.sh +++ b/.github/workflows/gitee-sync-shell.sh @@ -4,7 +4,6 @@ git config --global user.name "sync2gitee" pwd git remote -v -git checkout dev/4.3.1 # change android maven to china repos sed -ie "s#google()#maven { url \"https\://maven.aliyun.com/repository/public\" }\n google()#g" Android/APIExample/settings.gradle @@ -15,10 +14,10 @@ git add Android/APIExample/settings.gradle Android/APIExample/gradle/wrapper/gra git commit -m '[Android] gitee sync >> use china repos.' # change iOS Podfile to china repos -sed -ie '1s/^/source "https://mirrors.tuna.tsinghua.edu.cn/git/CocoaPods/Specs.git"\n' iOS/APIExample/Podfile -sed -ie '1s/^/source "https://mirrors.tuna.tsinghua.edu.cn/git/CocoaPods/Specs.git"\n' iOS/APIExample-Audio/Podfile -sed -ie '1s/^/source "https://mirrors.tuna.tsinghua.edu.cn/git/CocoaPods/Specs.git"\n' iOS/APIExample-OC/Podfile -sed -ie '1s/^/source "https://mirrors.tuna.tsinghua.edu.cn/git/CocoaPods/Specs.git"\n' macOS/Podfile +sed -ie '1s#^#source "https://mirrors.tuna.tsinghua.edu.cn/git/CocoaPods/Specs.git"\n#' iOS/APIExample/Podfile +sed -ie '1s#^#source "https://mirrors.tuna.tsinghua.edu.cn/git/CocoaPods/Specs.git"\n#' iOS/APIExample-Audio/Podfile +sed -ie '1s#^#source "https://mirrors.tuna.tsinghua.edu.cn/git/CocoaPods/Specs.git"\n#' iOS/APIExample-OC/Podfile +sed -ie '1s#^#source "https://mirrors.tuna.tsinghua.edu.cn/git/CocoaPods/Specs.git"\n#' macOS/Podfile git add iOS/APIExample/Podfile iOS/APIExample-Audio/Podfile iOS/APIExample-OC/Podfile macOS/Podfile git commit -m '[iOS] gitee sync >> use china repos.'