1
0
Fork 0
mirror of synced 2024-07-26 18:11:09 -04:00

Disable function calls if YADM_TEST=1

This is to allow loading the functions only during tests.
This commit is contained in:
Tim Byrne 2016-03-23 19:16:21 -05:00
parent 6918e1b7df
commit 301b537f15

10
yadm
View file

@ -499,6 +499,10 @@ function require_repo() {
[ -d "$YADM_REPO" ] || error_out "Git repo does not exist. did you forget to run 'init' or 'clone'?"
}
process_global_args "$@"
configure_paths
main "${MAIN_ARGS[@]}"
#; ****** Main processing (when not unit testing) ******
if [ "$YADM_TEST" != 1 ] ; then
process_global_args "$@"
configure_paths
main "${MAIN_ARGS[@]}"
fi