From: Kevin Day Date: Tue, 30 Jul 2013 06:38:08 +0000 (-0500) Subject: Cleanup: make sure unset functions call themselves X-Git-Url: https://git.kevux.org/?a=commitdiff_plain;h=3fd98af78fed15008aa38cd16824bf37edac9c98;p=kit-legacy Cleanup: make sure unset functions call themselves --- diff --git a/sources/sh/kit b/sources/sh/kit index 5bb2b9d..0476954 100755 --- a/sources/sh/kit +++ b/sources/sh/kit @@ -429,6 +429,7 @@ cleanup_main() { unset cleanup_before_exit unset main + unset cleanup_main } diff --git a/sources/sh/kit-core b/sources/sh/kit-core index 720e4d7..1780b7e 100755 --- a/sources/sh/kit-core +++ b/sources/sh/kit-core @@ -11,12 +11,12 @@ kit_core_unset(){ unset kit_core_error unset kit_core_warning unset kit_core_is_empty - unset kit_core_unset unset kit_core_to_lower unset kit_core_to_upper unset kit_core_alpha_numeric unset kit_core_directory_ending unset kit_core_get_random + unset kit_core_unset } kit_core_main(){ diff --git a/sources/sh/kit-distribution b/sources/sh/kit-distribution index 737042b..d2bb2a4 100755 --- a/sources/sh/kit-distribution +++ b/sources/sh/kit-distribution @@ -3,6 +3,7 @@ kit_distribution_unset() { unset kit_distribution_load + unset kit_distribution_unset } kit_distribution_load() { diff --git a/sources/sh/kit-dynamic b/sources/sh/kit-dynamic index 0a5f07a..b0bb0a3 100755 --- a/sources/sh/kit-dynamic +++ b/sources/sh/kit-dynamic @@ -16,6 +16,7 @@ kit_dynamic_unset() { unset kit_dynamic_strategy_load unset kit_dynamic_sanitize unset kit_dynamic_safe_expand + unset kit_dynamic_unset } kit_dynamic_error() { diff --git a/sources/sh/kit-fss b/sources/sh/kit-fss index 7cb1262..7e79908 100755 --- a/sources/sh/kit-fss +++ b/sources/sh/kit-fss @@ -2,10 +2,11 @@ # provides functions for reading and writing in fss format. kit_fss_unset() { - unset kit_kit_has_fss_error + unset kit_fss_has_error unset kit_fss_exit_on_error unset kit_fss_read unset kit_fss_read_path + unset kit_fss_unset } diff --git a/sources/sh/kit-log b/sources/sh/kit-log index 5b2ce21..4776d65 100755 --- a/sources/sh/kit-log +++ b/sources/sh/kit-log @@ -5,6 +5,7 @@ kit_log_unset() { unset kit_log_section unset kit_log_message unset kit_log_message_raw + unset kit_log_unset } kit_log_section() { diff --git a/sources/sh/kit-message b/sources/sh/kit-message index 560b129..82b3fcc 100755 --- a/sources/sh/kit-message +++ b/sources/sh/kit-message @@ -15,6 +15,7 @@ kit_message_unset() { unset kit_message_highlight_no_log unset kit_message_important_no_log unset kit_message_help + unset kit_message_unset } kit_message_log() { diff --git a/sources/sh/kit-operation b/sources/sh/kit-operation index 3ca7f64..84188ab 100755 --- a/sources/sh/kit-operation +++ b/sources/sh/kit-operation @@ -5,6 +5,7 @@ kit_operation_unset() { unset kit_operation_error unset kit_operation_message unset kit_operation_format + unset kit_operation_unset } kit_operation_error() { diff --git a/sources/sh/kit-operation-access b/sources/sh/kit-operation-access index bf85ec4..cec1434 100755 --- a/sources/sh/kit-operation-access +++ b/sources/sh/kit-operation-access @@ -14,6 +14,7 @@ kit_operation_access_unset() { unset kit_operation_access_apply unset kit_operation_access_resume unset kit_operation_access + unset kit_operation_access_unset } kit_operation_access_apply() { diff --git a/sources/sh/kit-operation-attribute b/sources/sh/kit-operation-attribute index fdac298..59a794e 100755 --- a/sources/sh/kit-operation-attribute +++ b/sources/sh/kit-operation-attribute @@ -14,6 +14,7 @@ kit_operation_attribute_unset() { unset kit_operation_attribute_apply unset kit_operation_attribute_resume unset kit_operation_attribute + unset kit_operation_attribute_unset } kit_operation_attribute_apply() { diff --git a/sources/sh/kit-operation-directory b/sources/sh/kit-operation-directory index 6fa23ea..1bb6a42 100755 --- a/sources/sh/kit-operation-directory +++ b/sources/sh/kit-operation-directory @@ -24,6 +24,7 @@ kit_operation_directory_unset() { unset kit_operation_directory + unset kit_operation_directory_unset } kit_operation_directory() { diff --git a/sources/sh/kit-operation-file b/sources/sh/kit-operation-file index 3fd76a1..7671901 100755 --- a/sources/sh/kit-operation-file +++ b/sources/sh/kit-operation-file @@ -36,6 +36,7 @@ kit_operation_file_unset() { unset kit_operation_file + unset kit_operation_file_unset } kit_operation_file() { diff --git a/sources/sh/kit-operation-group b/sources/sh/kit-operation-group index 7c1e166..19b9ab2 100755 --- a/sources/sh/kit-operation-group +++ b/sources/sh/kit-operation-group @@ -13,6 +13,7 @@ kit_operation_group_unset() { unset kit_operation_group_apply unset kit_operation_group_resume unset kit_operation_group + unset kit_operation_group_unset } kit_operation_group_apply() { diff --git a/sources/sh/kit-operation-if b/sources/sh/kit-operation-if index 2027d42..3f366b2 100755 --- a/sources/sh/kit-operation-if +++ b/sources/sh/kit-operation-if @@ -21,6 +21,7 @@ kit_operation_if_unset() { unset kit_operation_if_resume unset kit_operation_if + unset kit_operation_if_unset } kit_operation_if_resume() { diff --git a/sources/sh/kit-operation-library b/sources/sh/kit-operation-library index ae51d9d..4b7910e 100755 --- a/sources/sh/kit-operation-library +++ b/sources/sh/kit-operation-library @@ -22,6 +22,7 @@ kit_operation_library_unset() { unset kit_operation_library + unset kit_operation_library_unset } kit_operation_library() { diff --git a/sources/sh/kit-operation-mode b/sources/sh/kit-operation-mode index bb14b64..2afa98f 100755 --- a/sources/sh/kit-operation-mode +++ b/sources/sh/kit-operation-mode @@ -14,6 +14,7 @@ kit_operation_mode_unset() { unset kit_operation_mode_apply unset kit_operation_mode_resume unset kit_operation_mode + unset kit_operation_mode_unset } kit_operation_mode_apply() { diff --git a/sources/sh/kit-operation-path b/sources/sh/kit-operation-path index 6b49442..668d0ea 100755 --- a/sources/sh/kit-operation-path +++ b/sources/sh/kit-operation-path @@ -12,6 +12,7 @@ kit_operation_path_unset() { unset kit_operation_path unset kit_operation_path_resume + unset kit_operation_path_unset } kit_operation_path() { diff --git a/sources/sh/kit-operation-shell b/sources/sh/kit-operation-shell index 80e7bd4..7744b54 100755 --- a/sources/sh/kit-operation-shell +++ b/sources/sh/kit-operation-shell @@ -9,6 +9,7 @@ kit_operation_shell_unset() { unset kit_operation_shell + unset kit_operation_shell_unset } kit_operation_shell() { diff --git a/sources/sh/kit-operation-strip b/sources/sh/kit-operation-strip index 67b944a..9764cab 100755 --- a/sources/sh/kit-operation-strip +++ b/sources/sh/kit-operation-strip @@ -19,6 +19,7 @@ kit_operation_strip_unset() { unset kit_operation_strip unset kit_operation_strip_apply + unset kit_operation_strip_unset } kit_operation_strip() { diff --git a/sources/sh/kit-operation-version b/sources/sh/kit-operation-version index 6010b01..ba5c5ed 100755 --- a/sources/sh/kit-operation-version +++ b/sources/sh/kit-operation-version @@ -15,6 +15,7 @@ kit_operation_version_unset() { unset kit_operation_version unset kit_operation_version_resume + unset kit_operation_version_unset } kit_operation_version() { diff --git a/sources/sh/kit-package b/sources/sh/kit-package index e4be755..caa923b 100755 --- a/sources/sh/kit-package +++ b/sources/sh/kit-package @@ -14,6 +14,7 @@ kit_package_unset() { unset kit_package_version_save unset kit_package unset kit_package_individual + unset kit_package_unset } kit_package_read() { diff --git a/sources/sh/kit-permission b/sources/sh/kit-permission index a8bc266..7c4b300 100755 --- a/sources/sh/kit-permission +++ b/sources/sh/kit-permission @@ -5,6 +5,7 @@ kit_permission_unset() { unset kit_permission_is unset kit_permission_set unset kit_permission_get + unset kit_permission_unset } kit_permission_is() { diff --git a/sources/sh/kit-procedure b/sources/sh/kit-procedure index a4753d6..4604d51 100755 --- a/sources/sh/kit-procedure +++ b/sources/sh/kit-procedure @@ -5,6 +5,7 @@ kit_procedure_unset() { unset kit_procedure_error unset kit_procedure + unset kit_procedure_unset } kit_procedure_error() { diff --git a/sources/sh/kit-read b/sources/sh/kit-read index 1ab6395..a747105 100755 --- a/sources/sh/kit-read +++ b/sources/sh/kit-read @@ -3,4 +3,5 @@ #kit_read_unset() { # unset kit_read_line +# unset kit_read_unset #} diff --git a/sources/sh/kit-reserved b/sources/sh/kit-reserved index 9b8f1aa..01471d2 100755 --- a/sources/sh/kit-reserved +++ b/sources/sh/kit-reserved @@ -6,6 +6,7 @@ kit_reserved_unset() { unset kit_reserved_get unset kit_reserved_set unset kit_reserved_register + unset kit_reserved_unset } kit_reserved_is() { diff --git a/sources/sh/kit-rule b/sources/sh/kit-rule index 0272f59..4761575 100755 --- a/sources/sh/kit-rule +++ b/sources/sh/kit-rule @@ -7,6 +7,7 @@ kit_rule_unset() { unset kit_rule_error unset kit_rule_repository_load_premade unset kit_rule + unset kit_rule_unset } kit_rule_read() {