Skip to content

Commit

Permalink
Fix the error problem when the deleted file does not exist
Browse files Browse the repository at this point in the history
  • Loading branch information
qinhui committed Nov 25, 2024
1 parent 1741236 commit 3cce750
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 13 deletions.
14 changes: 7 additions & 7 deletions .github/ci/build/build_ios.sh
Original file line number Diff line number Diff line change
Expand Up @@ -72,14 +72,14 @@ else
unzip_name=`ls -S -d */ | grep Agora | sed 's/\///g'`
echo unzip_name: $unzip_name
rm -rf ./$unzip_name/bin
rm ./$unzip_name/commits
rm ./$unzip_name/package_size_report.txt
rm -f ./$unzip_name/commits
rm -f ./$unzip_name/package_size_report.txt

rm ./$unzip_name/.commits
rm ./$unzip_name/AgoraInfra_iOS.swift
rm ./$unzip_name/AgoraRtcEngine_iOS.podspec
rm ./$unzip_name/AgoraAudio_iOS.podspec
rm ./$unzip_name/Package.swift
rm -f ./$unzip_name/.commits
rm -f ./$unzip_name/AgoraInfra_iOS.swift
rm -f ./$unzip_name/AgoraRtcEngine_iOS.podspec
rm -f ./$unzip_name/AgoraAudio_iOS.podspec
rm -f ./$unzip_name/Package.swift
mkdir -p ./$unzip_name/samples
cp -rf ./iOS/${ios_direction} ./$unzip_name/samples/${ios_direction} || exit 1
ls -al ./$unzip_name/samples/${ios_direction}/
Expand Down
12 changes: 6 additions & 6 deletions .github/ci/build/build_mac.sh
Original file line number Diff line number Diff line change
Expand Up @@ -73,12 +73,12 @@ else
echo unzip_name: $unzip_name

rm -rf ./$unzip_name/bin
rm ./$unzip_name/commits
rm ./$unzip_name/package_size_report.txt
rm ./$unzip_name/.commits
rm ./$unzip_name/AgoraInfra_macOS.swift
rm ./$unzip_name/AgoraRtcEngine_macOS.podspec
rm ./$unzip_name/Package.swift
rm -f ./$unzip_name/commits
rm -f ./$unzip_name/package_size_report.txt
rm -f ./$unzip_name/.commits
rm -f ./$unzip_name/AgoraInfra_macOS.swift
rm -f ./$unzip_name/AgoraRtcEngine_macOS.podspec
rm -f ./$unzip_name/Package.swift

mkdir ./$unzip_name/samples
cp -rf ./macOS ./$unzip_name/samples/APIExample || exit 1
Expand Down

0 comments on commit 3cce750

Please sign in to comment.