Thanks, applied as e036dee4b718fef1c07b7313b2560a2494b3cc7a.

Michael

[sent from post-receive hook]

On Fri, 05 Feb 2021 07:50:34 +0100, Sascha Hauer <[email protected]> wrote:
> $(PTXCONF_PROJECT_VENDOR) and $(PTXCONF_ROOTFS_ETC_HOSTNAME) can be
> empty variables in which case bash answers with:
> 
> /bin/bash: command substitution: line 0: syntax error near unexpected token 
> `newline'
> /bin/bash: command substitution: line 0: `sed -r 's/ ?([\.:;,]) ?/ \1 /' <<< '
> 
> Fix this warning by adding quotes to make the empty string explicit.
> 
> Signed-off-by: Sascha Hauer <[email protected]>
> Message-Id: <[email protected]>
> Signed-off-by: Michael Olbrich <[email protected]>
> 
> diff --git a/rules/rootfs.make b/rules/rootfs.make
> index 419ca001e4ac..1c1e5501cf83 100644
> --- a/rules/rootfs.make
> +++ b/rules/rootfs.make
> @@ -217,12 +217,14 @@ ifdef PTXCONF_ROOTFS_ISSUE
>               $(call remove_quotes,$(PTXCONF_ROOTFS_ETC_HOSTNAME)))
>       @$(call install_replace_figlet, rootfs, /etc/issue, \
>               @FIGLET:VENDOR@, \
> -             `sed -r 's/ ?([\.:;,]) ?/ \1 /' <<< $(PTXCONF_PROJECT_VENDOR)`, 
> \
> -             etcissue)
> +             `sed -r 's/ ?([\.:;,]) ?/ \1 /' <<< \
> +                     "$(call remove_quotes,$(PTXCONF_PROJECT_VENDOR))"`, \
> +                     etcissue)
>       @$(call install_replace_figlet, rootfs, /etc/issue, \
>               @FIGLET:HOSTNAME@, \
> -             `sed -r 's/ ?([\.:;,]) ?/ \1 /' <<< 
> $(PTXCONF_ROOTFS_ETC_HOSTNAME)`, \
> -             etcissue)
> +             `sed -r 's/ ?([\.:;,]) ?/ \1 /' <<< \
> +                     "$(call 
> remove_quotes,$(PTXCONF_ROOTFS_ETC_HOSTNAME))"`, \
> +                     etcissue)
>  endif
>  
>  ifdef PTXCONF_ROOTFS_HOSTS

_______________________________________________
ptxdist mailing list
[email protected]
To unsubscribe, send a mail with subject "unsubscribe" to 
[email protected]

Reply via email to