commit 63422474cf6e0f1e64b48e9191194079017ed40a parent 43b579050a185251014465c4c69b250414429281 Author: Anders Damsgaard <anders@adamsgaard.dk> Date: Wed, 27 Jan 2021 10:48:59 +0100 extract_urls: return 1 if no urls were found Diffstat:
M | .local/bin/extract_urls | | | 5 | +++++ |
1 file changed, 5 insertions(+), 0 deletions(-)
diff --git a/.local/bin/extract_urls b/.local/bin/extract_urls @@ -6,3 +6,8 @@ print url } } + +END { + if (length(urls) < 1) + exit 1 +}