Browse Source

implement unloadModule()

master
belliash 8 years ago
parent
commit
5377983183
1 changed files with 14 additions and 0 deletions
  1. +14
    -0
      libraries/common

+ 14
- 0
libraries/common View File

@@ -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
}

Loading…
Cancel
Save