...
1#!/bin/bash
2
3set -e
4
5BRANCH_NAME_BUILD="playwright-build"
6SCRIPTS_DIR="$(dirname "$0")"
7
8echo "Applying patches..."
9
10pushd "$SCRIPTS_DIR/.."
11git submodule update --init
12pushd playwright
13
14git checkout HEAD --detach
15
16if git show-ref -q --heads "$BRANCH_NAME_BUILD"; then
17 git checkout main
18 git branch -D "$BRANCH_NAME_BUILD"
19fi
20
21git checkout -b "$BRANCH_NAME_BUILD"
22git apply --3way --whitespace=nowarn ../patches/*
23git add -A
24git commit -m "Applied patches"
25
26popd
View as plain text