]> gitweb.fluxo.info Git - kvmx.git/commitdiff
Test for kvmx internal function in a locale-independent way
authorSilvio Rhatto <rhatto@riseup.net>
Tue, 11 Jul 2017 12:58:36 +0000 (09:58 -0300)
committerSilvio Rhatto <rhatto@riseup.net>
Tue, 11 Jul 2017 12:58:36 +0000 (09:58 -0300)
kvmx

diff --git a/kvmx b/kvmx
index 16da59d11481417a0e620d9cb5b933e967758d90..1cf2a8f0afa7ec9986cc46cdaee499faf1b89a1c 100755 (executable)
--- a/kvmx
+++ b/kvmx
@@ -1068,7 +1068,7 @@ function kvmx_open {
 }
 
 # Dispatch
-if type kvmx_$ACTION 2> /dev/null | grep -q 'function'; then
+if type kvmx_$ACTION 2> /dev/null | grep -q "kvmx_$ACTION ()"; then
   __kvmx_initialize
   kvmx_$ACTION $*
 else