X-Git-Url: https://pd.if.org/git/?a=blobdiff_plain;f=zpm-contents;h=8b7dde005b9f2314da725bfab9f8a5686e6273d0;hb=4238c6794cfe19c0d8fd62da35eb966f1868f9da;hp=d6a5996ba34846945b7db0b68074f0314e88b84a;hpb=62e2d81f8e5c1a2284660752524753638ae59766;p=zpackage diff --git a/zpm-contents b/zpm-contents index d6a5996..8b7dde0 100755 --- a/zpm-contents +++ b/zpm-contents @@ -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