commit f6e1f95a0287fc6e77786a0f438b33b665e33de9 parent 31dd40327aaf25a58663cc222e41a54a78430a03 Author: Anders Damsgaard <anders@adamsgaard.dk> Date: Tue, 29 Sep 2020 08:34:34 +0200 plumb: open GMD pdfs directly Diffstat:
M | .local/bin/plumb | | | 4 | +++- |
1 file changed, 3 insertions(+), 1 deletion(-)
diff --git a/.local/bin/plumb b/.local/bin/plumb @@ -190,7 +190,9 @@ handle_url() { sed 's,.*/\([0-9][0-9][0-9][0-9]\)/.*,\1,')" t="${t}tc-${v}-${n}-${y}.pdf";; *tc.copernicus.org/articles/*/) - t="$(printf '%s' "$t" | awk -F/ -v h="$t" '{print h"tc-"$5"-"$6"-"$7".pdf"}')" + t="$(printf '%s' "$t" | awk -F/ -v h="$t" '{print h"tc-"$5"-"$6"-"$7".pdf"}')";; + *gmd.copernicus.org/articles/*/) + t="$(printf '%s' "$t" | awk -F/ -v h="$t" '{print h"gmd-"$5"-"$6"-"$7".pdf"}')";; esac if regexmatch "$t" '^(0|1|3|7|9|g|I|h)' && \