Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/freebsd/poudriere.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorBryan Drewery <bryan@shatow.net>2021-11-20 06:11:40 +0300
committerBryan Drewery <bryan@shatow.net>2021-11-24 06:31:11 +0300
commitbbbf1942a2f302c78f0721967b11d6dfe6c93937 (patch)
treed219c1e94f9de6f352b5ba7e4a0adac19ca777cb /src
parent17066c65f67818f674204784d2102b123d656cfd (diff)
display_output: Don't size non-format-arguments
Diffstat (limited to 'src')
-rw-r--r--src/share/poudriere/include/display.sh5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/share/poudriere/include/display.sh b/src/share/poudriere/include/display.sh
index 83c4a177..43045a58 100644
--- a/src/share/poudriere/include/display.sh
+++ b/src/share/poudriere/include/display.sh
@@ -97,6 +97,11 @@ display_output() {
lengths=
n=0
for arg in "$@"; do
+ # Check if this is a format argument
+ case "${arg}" in
+ *%*) ;;
+ *) continue ;;
+ esac
case ${arg} in
*%d*)
hash_get lengths ${n} length