Include tags in 'ghcup list' and improve formatting
This commit is contained in:
parent
5eee1b6d58
commit
2b9f1a4a20
8
ghcup
8
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
|
||||
|
Loading…
Reference in New Issue
Block a user