]> pd.if.org Git - zpackage/commitdiff
print link target in contents
authorNathan Wagner <nw@hydaspes.if.org>
Fri, 2 Nov 2018 14:22:57 +0000 (14:22 +0000)
committerNathan Wagner <nw@hydaspes.if.org>
Sat, 3 Nov 2018 12:39:53 +0000 (12:39 +0000)
zpm-contents

index 7522c183a647f0f8f9ab34647963e3954e2021db..d6a5996ba34846945b7db0b68074f0314e88b84a 100755 (executable)
@@ -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