aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'utils/isolated-functions.sh')
-rwxr-xr-xutils/isolated-functions.sh30
1 files changed, 15 insertions, 15 deletions
diff --git a/utils/isolated-functions.sh b/utils/isolated-functions.sh
index 5bb157f..9d189ed 100755
--- a/utils/isolated-functions.sh
+++ b/utils/isolated-functions.sh
@@ -6,21 +6,21 @@ has() {
hasq $*
}
-#hasq() {
-# for item in ${*:2}
-# do
-# [[ $item == $1 ]] && return 0
-# done
-# return 1
-#}
-
-#EXPORT_FUNCTIONS() {
-# if [ -z "$ECLASS" ]; then
-# die "EXPORT_FUNCTIONS without a defined ECLASS"
-# return 1
-# fi
-# __export_funcs_var="$__export_funcs_var $*"
-#}
+hasq() {
+ for item in ${*:2}
+ do
+ [[ $item == $1 ]] && return 0
+ done
+ return 1
+}
+
+EXPORT_FUNCTIONS() {
+ if [ -z "$ECLASS" ]; then
+ die "EXPORT_FUNCTIONS without a defined ECLASS"
+ return 1
+ fi
+ __export_funcs_var="$__export_funcs_var $*"
+}
use() {
echo "use shouldn't be called"