Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Prevent redundant sourcing of core lib
Tom Scavo committed May 5, 2017
1 parent e96b906 commit 0bcc6b9
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion lib/core_lib.sh
@@ -16,7 +16,12 @@
# limitations under the License.
#######################################################################

_COMPATIBILITY_MODE=true
# this script need only be sourced once
if [ "$_COMPATIBILITY_MODE" = true ]; then
return
else
_COMPATIBILITY_MODE=true
fi

#######################################################################
# Specify the absolute path to each shell command file.

0 comments on commit 0bcc6b9

Please sign in to comment.