mirror of
https://github.com/hyprwm/wlroots-hyprland.git
synced 2024-11-21 20:35:58 +01:00
modified: patches/apply.sh Co-authored-by: Agent_00Ming <agent00ming9366@gmail.com>
This commit is contained in:
parent
5c1d51c5a2
commit
411292daf3
1 changed files with 3 additions and 3 deletions
|
@ -4,15 +4,15 @@
|
|||
PATCHES=$(find patches/ -type f -name '*.patch')
|
||||
|
||||
apply () {
|
||||
git apply $PATCH
|
||||
patch -p1 -r /dev/null -N -s < $PATCH >/dev/null 2>&1 && echo NEW: \'$PATCH\'
|
||||
}
|
||||
|
||||
check_applied () {
|
||||
git apply --check --reverse -q $PATCH
|
||||
patch -p1 -r /dev/null --dry-run -R -s < $PATCH >/dev/null 2>&1 && echo OK: \'$PATCH\'
|
||||
}
|
||||
|
||||
fail () {
|
||||
echo =======\> \'$PATCH\' was not applied && exit 1
|
||||
echo FAILED: \'$PATCH\' NOT APPLICABLE && exit 1
|
||||
}
|
||||
|
||||
if [ -n "$PATCHES" ];
|
||||
|
|
Loading…
Reference in a new issue