From 89a353f418f5e879ab5564ec0767a6cbdb19d51c Mon Sep 17 00:00:00 2001 From: NIIBE Yutaka Date: Wed, 7 Apr 2021 16:59:35 +0900 Subject: 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 Signed-off-by: NIIBE Yutaka --- src/gpgrt-config.in | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'src') 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. -- cgit v1.2.3