From: Peter Michaux Date: Sat, 6 Jan 2024 06:10:34 +0000 (-0800) Subject: Align columns in lxc-download.in template X-Git-Tag: v6.0.0~30^2 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=84cc3155af502db586f644f1092831155e45ccca;p=thirdparty%2Flxc.git Align columns in lxc-download.in template Signed-off-by: Peter Michaux --- diff --git a/templates/lxc-download.in b/templates/lxc-download.in index bd2c37659..9614bd329 100755 --- a/templates/lxc-download.in +++ b/templates/lxc-download.in @@ -241,7 +241,7 @@ if [ "${DOWNLOAD_LIST_IMAGES}" = "true" ] || [ "${DOWNLOAD_INTERACTIVE}" = "true # Parse it echo "" echo "---" - printf "DIST\tRELEASE\tARCH\tVARIANT\tBUILD\n" + printf "%-15s %-10s %-5s %-7s %-14s\n" "DIST" "RELEASE" "ARCH" "VARIANT" "BUILD" echo "---" while IFS=';' read -r f1 f2 f3 f4 f5 f6; do [ -n "${DOWNLOAD_DIST}" ] && [ "$f1" != "${DOWNLOAD_DIST}" ] && continue @@ -250,7 +250,7 @@ if [ "${DOWNLOAD_LIST_IMAGES}" = "true" ] || [ "${DOWNLOAD_INTERACTIVE}" = "true [ -n "${DOWNLOAD_VARIANT}" ] && [ "$f4" != "${DOWNLOAD_VARIANT}" ] && continue [ -z "${f5}" ] || [ -z "${f6}" ] && continue - printf "%s\t%s\t%s\t%s\t%s\n" "${f1}" "${f2}" "${f3}" "${f4}" "${f5}" + printf "%-15s %-10s %-5s %-7s %-14s\n" "${f1}" "${f2}" "${f3}" "${f4}" "${f5}" unset f1 f2 f3 f4 f5 f6 done < "${DOWNLOAD_TEMP}/index" echo "---"