[BUGFIX] function names duplicated
This commit is contained in:
parent
001bea8406
commit
854e69c134
@ -5,7 +5,7 @@
|
|||||||
# #
|
# #
|
||||||
###################################################################
|
###################################################################
|
||||||
|
|
||||||
_CA__VERSION=1.0.2
|
_CA__VERSION=1.0.3
|
||||||
_CA__DEPENDENCIES=(code-activator fzf jq git)
|
_CA__DEPENDENCIES=(code-activator fzf jq git)
|
||||||
|
|
||||||
#####################################################################
|
#####################################################################
|
||||||
|
@ -48,9 +48,8 @@ _CA__CUSTOM_ENV_GET_VARIABLE_NAMES() {
|
|||||||
|
|
||||||
_CA__CUSTOM_ENV_GET_FUNCTION_NAMES() {
|
_CA__CUSTOM_ENV_GET_FUNCTION_NAMES() {
|
||||||
{
|
{
|
||||||
grep -- '^function ' $_CA_ENV | sed 's/function //'
|
|
||||||
grep -- '[^ #]*()' $_CA_ENV
|
grep -- '[^ #]*()' $_CA_ENV
|
||||||
} | sed 's/().*//' | sort -u
|
} | sed 's/().*//; s/^function //' | sort -u
|
||||||
}
|
}
|
||||||
|
|
||||||
_CA__CUSTOM_ENV_GET_RESTORE_NAMES() {
|
_CA__CUSTOM_ENV_GET_RESTORE_NAMES() {
|
||||||
|
Loading…
Reference in New Issue
Block a user