]> pd.if.org Git - zpackage/blobdiff - zpm-contents
cleanup dead code
[zpackage] / zpm-contents
index d6a5996ba34846945b7db0b68074f0314e88b84a..8b7dde005b9f2314da725bfab9f8a5686e6273d0 100755 (executable)
@@ -67,15 +67,10 @@ cols=${cols%,}
                        printf ', '
                fi
 
-               cat <<-EOC
-               case when filetype = 'd' then
-                       rtrim(path,'/') || '/'
-               when filetype = 'l' then
-                       printf('%s -> %s', path, target)
-               else
-                       path
-               end as path
-               EOC
+               printf "case\n";
+               printf "when filetype = 'd' then rtrim(path,'/') || '/'\n"
+               printf "when filetype = 'l' then printf('%s -> %s', path, target)\n"
+               printf "else path end as path\n"
        fi
        printf 'from packagefiles_pkgid\nwhere true\n'
        if [ -n "$globlist" ]; then