fix patch cmd
This commit is contained in:
@@ -15,14 +15,11 @@ PATCH_FILES_IOS=(
|
||||
"002-social-app-ios-lib.patch"
|
||||
"003-social-app-ios-view.patch"
|
||||
"004-social-app-ios-core.patch"
|
||||
"005-social-app-ios-screens.patch"
|
||||
"006-social-app-ios-shell.patch"
|
||||
"007-social-app-ios-misc.patch"
|
||||
"008-social-app-ios-policy-tos-error.patch"
|
||||
"009-social-app-ios-license.patch"
|
||||
"016-social-app-ios-consolidated-fixes.patch"
|
||||
"010-social-app-ios-remove-contact-support.patch"
|
||||
"011-social-app-ios-splash-license-footer.patch"
|
||||
"012-social-app-ios-settings-about-help.patch"
|
||||
"013-social-app-ios-settings-remove-help.patch"
|
||||
)
|
||||
|
||||
@@ -46,7 +43,7 @@ function apply-patch() {
|
||||
pushd ${target_dir} > /dev/null
|
||||
|
||||
# Check if patch is already applied (reverse dry-run succeeds)
|
||||
if patch --dry-run -p1 -R < ${patch_file} > /dev/null 2>&1; then
|
||||
if patch -f --dry-run -p1 -R < ${patch_file} > /dev/null 2>&1; then
|
||||
echo "✅ Already applied - skipping"
|
||||
popd > /dev/null
|
||||
echo ""
|
||||
|
||||
Reference in New Issue
Block a user