summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNIIBE Yutaka <gniibe@fsij.org>2021-04-07 16:59:35 +0900
committerNIIBE Yutaka <gniibe@fsij.org>2021-04-07 16:59:35 +0900
commit89a353f418f5e879ab5564ec0767a6cbdb19d51c (patch)
tree9a0b1dd418107944e5d4dd933acdc6f082491862
parent8536f82194ec21635cd017d7e0bd382106e196c6 (diff)
downloadlibgpg-error-89a353f418f5e879ab5564ec0767a6cbdb19d51c.tar.gz
build: Fix gpgrt-config for handling 'Requires' field.
* src/gpgrt-config.in (get_attr_l): Fix thinko for word split. -- GnuPG-bug-id: 5381 Reported-by: Jakub Jelen <jjelen@redhat.com> Signed-off-by: NIIBE Yutaka <gniibe@fsij.org>
-rw-r--r--src/gpgrt-config.in3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/gpgrt-config.in b/src/gpgrt-config.in
index 0fe14e8..6352384 100644
--- a/src/gpgrt-config.in
+++ b/src/gpgrt-config.in
@@ -1,4 +1,5 @@
#!@INSTALLSHELLPATH@
+# -*- mode: shell-script; sh-shell: "/bin/sh" -*-
# Copyright (C) 2018, 2021 g10 Code GmbH
#
# This file is free software; as a special exception the author gives
@@ -41,7 +42,7 @@ get_attr () {
# variant of get_attr for list (separated by ',')
get_attr_l () {
- (IFS=', '; for x in "$(get_attr $1)"; do echo $x; done)
+ (IFS=', '; echo "$(get_attr $1)")
}
# Remove ${varname} part in the beginning of a string.