]> git.ipfire.org Git - thirdparty/lxc.git/commitdiff
Align columns in lxc-download.in template 4381/head
authorPeter Michaux <petermichaux@gmail.com>
Sat, 6 Jan 2024 06:10:34 +0000 (22:10 -0800)
committerGitHub <noreply@github.com>
Sat, 6 Jan 2024 06:10:34 +0000 (22:10 -0800)
Signed-off-by: Peter Michaux <petermichaux@gmail.com>
templates/lxc-download.in

index bd2c376599fc32875c128ee665246a809d276633..9614bd32918a4a49b8b2c421bfbc9138368d19be 100755 (executable)
@@ -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 "---"