tFix parsing while checking archive content - mkports - recipes for building multiple softwares with mk(1)
 (HTM) git clone git://z3bra.org/mkports
 (DIR) Log
 (DIR) Files
 (DIR) Refs
       ---
 (DIR) commit e4915d253d249b1a3c92c57a709b08f90855fb84
 (DIR) parent 472630623a23cd7f29292af4d820de512d9338a9
 (HTM) Author: z3bra <willyatmailoodotorg>
       Date:   Fri, 15 Jan 2016 22:59:27 +0100
       
       Fix parsing while checking archive content
       
       Diffstat:
         M default.mk                          |       5 ++++-
       
       1 file changed, 4 insertions(+), 1 deletion(-)
       ---
 (DIR) diff --git a/default.mk b/default.mk
       t@@ -41,8 +41,11 @@ fetch-git:QV:
        fetch-archive:QV:
                if [ -n "$url" ]; then
                        out=$(curl -LOw %{filename_effective} $url)
       -                src=$(tar -xvf $out|sed -n 1p|tr -d /)
       +                src=$(tar -xvf $out|sed -n 1p|cut -f1 -d/)
                        if [ "$src" != "$pkg-$ver" ]; then
       +                        pwd
       +                        ls -l
       +                        echo mv "$src" "$pkg-$ver"
                                mv "$src" "$pkg-$ver"
                        fi
                fi