[X2Go-Commits] [maintenancescripts] 02/08: git/hooks/x2go-post-receive-tag-pending: add more missing quotes.
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 f08a4df1060b2717d2cbacd1e2aaa035368fa4a9
Author: Mihai Moldovan <ionic at ionic.de>
Date: Wed Mar 4 17:57:28 2020 +0100
git/hooks/x2go-post-receive-tag-pending: add more missing quotes.
---
git/hooks/x2go-post-receive-tag-pending | 6 +++---
1 file changed, 3 insertions(+), 3 deletions(-)
diff --git a/git/hooks/x2go-post-receive-tag-pending b/git/hooks/x2go-post-receive-tag-pending
index ccca08e..37d6f63 100755
--- a/git/hooks/x2go-post-receive-tag-pending
+++ b/git/hooks/x2go-post-receive-tag-pending
@@ -162,12 +162,12 @@ while read oldrev newrev refname; do
d="${tempdir}/${rev}.diff"
# Check if this branch has a debian/changelog file to begin with and skip processing if there's
# none.
- if ! git cat-file -e "${rev}:debian/changelog" 2>/dev/null; then
+ if ! git cat-file -e "${rev}:debian/changelog" 2>'/dev/null'; then
continue
fi
git show "${rev}" -- "debian/changelog" >"${d}"
- version=$(get_version "${rev}" | sed -re 's/[0-9]+://' | cut -d"-" -f1)
- bugs=$(get_bugs "${rev}")
+ version="$(get_version "${rev}" | sed -re 's/[0-9]+://' | cut -d"-" -f1)"
+ bugs="$(get_bugs "${rev}")"
for bug in ${bugs}; do
if grep -qE '^\+.*\<'"${bug}"'\>' "${d}" &&
! grep -qE '^-.*\<'"${bug}"'\>' "${d}"; then
--
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