6f34f74e9b
date: 2026-04-10T22:07:44 master commit: 4ba0c4b574bff994e9a8f7266b4969b39380a8b1
12 lines
233 B
Bash
Executable File
12 lines
233 B
Bash
Executable File
#!/usr/bin/env bash
|
|
|
|
if [ $# -eq 0 ]; then
|
|
echo "usage: $0 <pull-request-number>"
|
|
exit 1
|
|
fi
|
|
|
|
BASE="https://github.com/commaai/openpilot/pull/"
|
|
PR_NUM="$(echo $1 | grep -o -E '[0-9]+')"
|
|
|
|
curl -L $BASE/$PR_NUM.patch | git apply -3
|