File: patch_OS.sh

package info (click to toggle)
ipmctl 03.00.00.0468-1
  • links: PTS, VCS
  • area: main
  • in suites: bookworm
  • size: 69,128 kB
  • sloc: ansic: 676,075; python: 122,025; cpp: 12,059; asm: 2,674; makefile: 488; sh: 322; xml: 318
file content (12 lines) | stat: -rw-r--r-- 250 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
#!/usr/bin/env bash

DIR="./src/os/patches"

# Apply patches
echo "Applying patches"
if [[ -d "$DIR" ]]; then
    for file in "$DIR"/*.patch
    do
        git apply --ignore-space-change --ignore-whitespace --whitespace=nowarn "${file}"
    done
fi