Recurse until non-plumb caller opener when using `-n' option - plumb - Open certain URL patterns with an ad-hoc opener (plumber)
(HTM) hg clone https://bitbucket.org/iamleot/plumb
(DIR) Log
(DIR) Files
(DIR) Refs
(DIR) README
---
(DIR) changeset af5763d8a2199cad8692346aa2f2d8f049191575
(DIR) parent 94adecaaf0c7691759fc4f887f97758c05151b22
(HTM) Author: Leonardo Taccari <iamleot@gmail.com>
Date: Thu, 13 Sep 2018 14:46:50
Recurse until non-plumb caller opener when using `-n' option
Instead of exit at the first matched opener recurse until the non-plumb caller
opener is invoked.
Diffstat:
plumb | 5 +++--
1 files changed, 3 insertions(+), 2 deletions(-)
---
diff -r 94adecaaf0c7 -r af5763d8a219 plumb
--- a/plumb Thu Sep 13 12:20:07 2018 +0200
+++ b/plumb Thu Sep 13 14:46:50 2018 +0200
@@ -54,9 +54,10 @@
if [ "${PLUMB_NOOPEN}" = "yes" ]; then
echo "${opener} \"${url}\""
- else
- ${PLUMB_OPENERS_PATH}/${opener} "${url}"
+ export PLUMB_NOOPEN=yes
fi
+
+ ${PLUMB_OPENERS_PATH}/${opener} "${url}"
}