X-Git-Url: https://pd.if.org/git/?a=blobdiff_plain;f=zpm-contents;h=d6a5996ba34846945b7db0b68074f0314e88b84a;hb=62e2d81f8e5c1a2284660752524753638ae59766;hp=7522c183a647f0f8f9ab34647963e3954e2021db;hpb=f657628fd0709886002fdb0e2d8bde6873a34eb8;p=zpackage diff --git a/zpm-contents b/zpm-contents index 7522c18..d6a5996 100755 --- a/zpm-contents +++ b/zpm-contents @@ -22,7 +22,7 @@ if [ ! -f $pkgfile ]; then fi if [ $long -gt 0 ]; then - cols="filetype,printf('%3.3s', mode) as mode,username,groupname," + cols="filetype,printf('%.4s', mode) as mode,username,groupname," fi if [ $pkgonly -eq 1 ]; then @@ -70,6 +70,8 @@ cols=${cols%,} cat <<-EOC case when filetype = 'd' then rtrim(path,'/') || '/' + when filetype = 'l' then + printf('%s -> %s', path, target) else path end as path