From 2b9f1a4a20fa8c2ffede841576eedc0d027471ea Mon Sep 17 00:00:00 2001 From: Julian Ospald Date: Tue, 6 Nov 2018 22:01:02 +0800 Subject: [PATCH] Include tags in 'ghcup list' and improve formatting --- ghcup | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/ghcup b/ghcup index 1b501fa..1483dbf 100755 --- a/ghcup +++ b/ghcup @@ -1562,14 +1562,18 @@ list() { awk " NF { if (\$1 != \"#\") { - print \$1 \" \" \$2 + if (\$1 == \"cabal-install\") { + print \$1 \"\\t\" \$2 \"\\t\" \$3 + } else { + print \$1 \"\\t\\t\" \$2 \"\\t\" \$3 + } } }" "${meta_file}" || die "awk failed!" else awk " NF { if (\$1 == \"${mytool}\") { - print \$1 \" \" \$2 + print \$1 \"\\t\" \$2 \"\\t\" \$3 } }" "${meta_file}" || die "awk failed!" fi