From 3ea5d1809e3bec97526aa9f4eb82cd0c247144a5 Mon Sep 17 00:00:00 2001 From: Andrew Druk Date: Tue, 7 Jan 2025 01:06:12 +0200 Subject: [PATCH] Fix apply patches for macOS --- build/macOS/010-clone-swift.sh | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/build/macOS/010-clone-swift.sh b/build/macOS/010-clone-swift.sh index 57c84c4..0667a12 100755 --- a/build/macOS/010-clone-swift.sh +++ b/build/macOS/010-clone-swift.sh @@ -16,12 +16,12 @@ pushd $SWIFT_SRC echo "swift-$(git -C ./swift rev-parse HEAD)" >> $ROOT_DIR/.swift.sum echo "swiftpm-$(git -C ./swiftpm rev-parse HEAD)" >> $ROOT_DIR/.swift.sum - # Apply patches for $BRANCH if exist + # Apply patches if exist for REPO in */; do - if [ -d "$ROOT_DIR/patches/$BRANCH/$REPO" ]; then + if [ -d "$ROOT_DIR/patches/$REPO" ]; then pushd $REPO - git apply $ROOT_DIR/patches/$BRANCH/$REPO/*.patch - echo "$(ls $ROOT_DIR/patches/$BRANCH/$REPO)" >> $ROOT_DIR/.swift.sum + git apply $ROOT_DIR/patches/$REPO/*.patch + echo "$(ls $ROOT_DIR/patches/$REPO)" >> $ROOT_DIR/.swift.sum popd fi done