Skip to content

Commit

Permalink
Fix apply patches for macOS
Browse files Browse the repository at this point in the history
  • Loading branch information
andriydruk committed Jan 6, 2025
1 parent c8cb59f commit 3ea5d18
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions build/macOS/010-clone-swift.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 3ea5d18

Please sign in to comment.