Send patches - preferably formatted by git format-patch - to patches at archlinux32 dot org.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorErich Eckner <git@eckner.net>2018-11-14 11:38:58 +0100
committerErich Eckner <git@eckner.net>2018-11-14 11:38:58 +0100
commit1c085647b60eb93e44185bdf7dcbe2a5b8f4befd (patch)
tree5e1d175b989162a6561a2929f5ad464840d3fe29
parent8325d8755a0b1e2e759c89cda11df544b95fb464 (diff)
update-kernel-config: sed -n "...; T; p" -> sed "...; t; d"
-rwxr-xr-xupdate-kernel-config12
1 files changed, 6 insertions, 6 deletions
diff --git a/update-kernel-config b/update-kernel-config
index 7439c7d..b4d78f2 100755
--- a/update-kernel-config
+++ b/update-kernel-config
@@ -47,17 +47,17 @@ for config_name in ${config_names}; do
{
grep -vxF "$(
printf '%s\n' "${diff}" | \
- sed -n '
+ sed '
s/^-//
- T
- p
+ t
+ d
'
)" "${git_repo_path}/$1/$2/${config_name}"
printf '%s\n' "${diff}" | \
- sed -n '
+ sed '
s/^+//
- T
- p
+ t
+ d
'
} | \
sponge "${git_repo_path}/$1/$2/${config_name}"