From 8de2bc98d6f618674d25da7850751c44db557f54 Mon Sep 17 00:00:00 2001 From: Mike Frysinger Date: Wed, 27 Oct 2021 05:23:29 -0400 Subject: crossdev: fix broken banner The "prefixify build system and scripts" commit changed the banner code for some reason, and the logic change was completely wrong. So revert that. Signed-off-by: Mike Frysinger --- crossdev | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/crossdev b/crossdev index ed75935..25b7acf 100755 --- a/crossdev +++ b/crossdev @@ -742,9 +742,9 @@ hr() { || c=${c##* } fi local ext=${1:- _ - ~ -} - local sext=${ext/?/ } + local sext=${ext//?/ } local br=$(printf "%$((c + ${#ext}))s") - local banner=${br/${sext}/${ext}} + local banner=${br//${sext}/${ext}} echo "${banner:0:${c}}" } ver_get_op() { -- cgit v1.2.3-65-gdbad