Ticket #2707: 2707-0004-extfs-u7z-print-cleanup.patch

File 2707-0004-extfs-u7z-print-cleanup.patch, 1.1 KB (added by mooffie, 2 years ago)
  • src/vfs/extfs/helpers/u7z

    From a9b3d598420e9429a75e932d85f03f276db09f8c Mon Sep 17 00:00:00 2001
    From: Mooffie <mooffie@gmail.com>
    Date: Mon, 19 Dec 2016 02:48:31 +0200
    Subject: [PATCH 4/6] Ticket #2707: extfs: u7z: print() cleanup.
    
    AWK's print() already writes OFS between expressions.
    ---
     src/vfs/extfs/helpers/u7z | 2 +-
     1 file changed, 1 insertion(+), 1 deletion(-)
    
    diff --git a/src/vfs/extfs/helpers/u7z b/src/vfs/extfs/helpers/u7z
    index cc20174..4417e7e 100755
    a b mcu7zip_list () 
    3535 
    3636        # archive entries can have no datetime info, 7z will use archive file datetime 
    3737        date_archive=`stat -c %y "$1" 2>/dev/null | sed -n "s/${date_re}.*/${date_mc}/p" 2>/dev/null` 
    38         [ "${date_archive}"x = x ] && date_archive=`ls -lan "$1" 2>/dev/null | awk '{print $6,"",$7,"",$8}' 2>/dev/null` 
     38        [ "${date_archive}"x = x ] && date_archive=`ls -lan "$1" 2>/dev/null | awk '{print $6, $7, $8}' 2>/dev/null` 
    3939        [ "${date_archive}"x = x ] && date_archive="01-01-1970 00:00:00" 
    4040 
    4141        $P7ZIP l "$1" | sed -n "