From 62e2d81f8e5c1a2284660752524753638ae59766 Mon Sep 17 00:00:00 2001 From: Nathan Wagner Date: Fri, 2 Nov 2018 14:22:57 +0000 Subject: [PATCH] print link target in contents --- zpm-contents | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) 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 -- 2.40.0