]> pd.if.org Git - zpackage/commitdiff
force four column width for mode
authorNathan Wagner <nw@hydaspes.if.org>
Thu, 25 Oct 2018 05:29:14 +0000 (05:29 +0000)
committerNathan Wagner <nw@hydaspes.if.org>
Sat, 3 Nov 2018 12:39:52 +0000 (12:39 +0000)
zpm-contents

index 79fc2935c5ffec267e6b36eae08851f121aedca4..23c07ae29a1d327050f8c5a06e953c5b141083c0 100755 (executable)
@@ -21,7 +21,7 @@ fi
 
 cols=
 if [ $verbose -gt 0 ]; then
-       cols='filetype,mode,username,groupname,'
+       cols="filetype,printf('%4.4s', mode) as mode,username,groupname,"
 fi
 
 for pkg in "$@"; do