From: Nathan Wagner Date: Fri, 2 Nov 2018 14:22:57 +0000 (+0000) Subject: print link target in contents X-Git-Tag: v0.2.16~45 X-Git-Url: https://pd.if.org/git/?p=zpackage;a=commitdiff_plain;h=62e2d81f8e5c1a2284660752524753638ae59766 print link target in contents --- 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