aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMike Frysinger <vapier@gentoo.org>2021-10-27 05:23:29 -0400
committerMike Frysinger <vapier@gentoo.org>2021-10-27 05:23:29 -0400
commit8de2bc98d6f618674d25da7850751c44db557f54 (patch)
tree94ef9c39848952348f63f4d8ace1a4e1c164e062
parentcrossdev: clean world file on uninstall (diff)
downloadcrossdev-8de2bc98d6f618674d25da7850751c44db557f54.tar.gz
crossdev-8de2bc98d6f618674d25da7850751c44db557f54.tar.bz2
crossdev-8de2bc98d6f618674d25da7850751c44db557f54.zip
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 <vapier@gentoo.org>
-rwxr-xr-xcrossdev4
1 files 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() {