Skip to content

Commit 10485bb

Browse files
committed
fix PATCH_DIR is nil
1 parent 82b2533 commit 10485bb

File tree

2 files changed

+6
-1
lines changed

2 files changed

+6
-1
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
## MRFFToolChain Build Shell
22

3-
![](https://img.shields.io/github/downloads/debugly/MRFFToolChainBuildShell/total) <img src="https://img.shields.io/badge/Platform-%20iOS%20macOS%20tvOS%20Android-blue.svg">
3+
![](https://img.shields.io/github/downloads/debugly/MRFFToolChainBuildShell/total) <img src="https://img.shields.io/badge/Platform-%20iOS%20macOS%20tvOS%20Android-blue.svg"><img src="https://img.shields.io/badge/FFmpeg-%207.1.1%20-blue.svg"><img src="https://img.shields.io/badge/FFmpeg-%206.1.1%20-blue.svg"><img src="https://img.shields.io/badge/FFmpeg-%205.1.6%20-blue.svg"><img src="https://img.shields.io/badge/FFmpeg-%204.0.5%20-blue.svg">
44

55
**What's MRFFToolChain?**
66

do-init/init-repo.sh

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -71,6 +71,11 @@ function apply_patches() {
7171
return
7272
fi
7373

74+
if [[ -z "$PATCH_DIR" ]]; then
75+
echo "$REPO_DIR hasn't any patch"
76+
return
77+
fi
78+
7479
local plat="$MR_PLAT"
7580
local patch_dir="${THIS_DIR}/../patches/$PATCH_DIR"
7681

0 commit comments

Comments
 (0)