From b252c360f84bb6d1a741c5db02e0344f1ddac0ce Mon Sep 17 00:00:00 2001 From: Dirk Thomas Date: Fri, 26 Oct 2018 16:14:16 -0700 Subject: [PATCH] replace 'typeset' usage in sh with 'command' --- colcon_core/shell/template/package.sh.em | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/colcon_core/shell/template/package.sh.em b/colcon_core/shell/template/package.sh.em index b86e48dc..64522db1 100644 --- a/colcon_core/shell/template/package.sh.em +++ b/colcon_core/shell/template/package.sh.em @@ -20,7 +20,7 @@ colcon_prepend_unique_value() { # start with the new value _all_values="$_value" # workaround SH_WORD_SPLIT not being set in zsh - if typeset -f colcon_zsh_convert_to_array > /dev/null; then + if [ "$(command -v colcon_zsh_convert_to_array)" ]; then colcon_zsh_convert_to_array _values fi # iterate over existing values in the variable