[X2Go-Commits] [maintenancescripts] 07/08: git/hooks/x2go-post-receive-close-bugs: drop useless use of cat.
git-admin at x2go.org
git-admin at x2go.org
Thu Mar 5 19:23:41 CET 2020
This is an automated email from the git hooks/post-receive script.
x2go pushed a commit to branch master
in repository maintenancescripts.
commit a23c07e63c819e896518205c74961a2e59bb4ab7
Author: Mihai Moldovan <ionic at ionic.de>
Date: Thu Mar 5 19:11:15 2020 +0100
git/hooks/x2go-post-receive-close-bugs: drop useless use of cat.
---
git/hooks/x2go-post-receive-close-bugs | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/git/hooks/x2go-post-receive-close-bugs b/git/hooks/x2go-post-receive-close-bugs
index e63a5d6..83497f7 100755
--- a/git/hooks/x2go-post-receive-close-bugs
+++ b/git/hooks/x2go-post-receive-close-bugs
@@ -153,7 +153,7 @@ while read oldrev newrev refname; do
fi
git show "${newrev}:debian/changelog" >"${c}" 2>'/dev/null'
- cat "${c}" | sed 's/Fixes:/Closes:/i' | dpkg-parsechangelog -l- | sed 's/Closes:/Fixes:/i' |
+ sed 's/Fixes:/Closes:/i' < "${c}" | dpkg-parsechangelog -l- | sed 's/Closes:/Fixes:/i' |
sed -e 's/^Source: /X2Go Component: src:/' \
-e 's/-0~x2go[0-9]//' \
-e 's/-0$//' \
--
Alioth's /home/x2go-admin/maintenancescripts/git/hooks/post-receive-email on /srv/git/code.x2go.org/maintenancescripts.git
More information about the x2go-commits
mailing list