Skip to content

Commit

Permalink
Prevent redundant sourcing of core lib
Browse files Browse the repository at this point in the history
  • Loading branch information
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
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down

0 comments on commit 0bcc6b9

Please sign in to comment.