From 5377983183f47cf043c251eb954ae83c4140c6dd Mon Sep 17 00:00:00 2001 From: belliash Date: Sun, 15 Jan 2012 23:37:51 +0100 Subject: [PATCH] implement unloadModule() --- libraries/common | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/libraries/common b/libraries/common index 79960a9..71fc19b 100644 --- a/libraries/common +++ b/libraries/common @@ -412,3 +412,17 @@ function toUpper() { function trim() { echo ${1} } + +#------------------------------------------------------------------------------- +# Silently unloads any previously loaded module +#------------------------------------------------------------------------------- +function unloadModule() { + unset EZMOD_AUTHOR + unset EZMOD_COMPATIBILITY + unset EZMOD_DESCRIPTION + unset EZMOD_VERSION + unset ezsync_precommit + unset ezsync_presync + unset ezsync_postcommit + unset ezsync_postsync +}