summaryrefslogtreecommitdiff
path: root/dependency-graph
diff options
context:
space:
mode:
authorErich Eckner <git@eckner.net>2019-07-18 14:20:44 +0200
committerErich Eckner <git@eckner.net>2019-07-18 14:20:44 +0200
commit5b4db2f764bd3028fb1c62082c064aeb07e999e3 (patch)
tree7f4b4c2ebdfe0164b15831f5dd720321195732ca /dependency-graph
parent11e8bedbd9f408e795a21d97c624cd93fc10255b (diff)
downloadarchlinuxewe.git.save-5b4db2f764bd3028fb1c62082c064aeb07e999e3.tar.xz
dependency-graph: fix bug in sed
Diffstat (limited to 'dependency-graph')
-rwxr-xr-xdependency-graph10
1 files changed, 5 insertions, 5 deletions
diff --git a/dependency-graph b/dependency-graph
index d3096356..0f38f002 100755
--- a/dependency-graph
+++ b/dependency-graph
@@ -19,12 +19,12 @@ if [ $# -eq 2 ]; then
all=$(
sed -n '
/^pkgbase = /,/^$/ {
- /^\s/ {
- $! s/$/\\/
- p
- }
+ /^\s/ p
}
- ' "${2}"
+ ' "${2}" \
+ | sed '
+ $! s/$/\\/
+ '
)
sed -i '
/^pkgbase = /,/^$/ d