Disable function calls if YADM_TEST=1
This is to allow loading the functions only during tests.
This commit is contained in:
parent
6918e1b7df
commit
301b537f15
1 changed files with 7 additions and 3 deletions
4
yadm
4
yadm
|
@ -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'?"
|
[ -d "$YADM_REPO" ] || error_out "Git repo does not exist. did you forget to run 'init' or 'clone'?"
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#; ****** Main processing (when not unit testing) ******
|
||||||
|
|
||||||
|
if [ "$YADM_TEST" != 1 ] ; then
|
||||||
process_global_args "$@"
|
process_global_args "$@"
|
||||||
configure_paths
|
configure_paths
|
||||||
main "${MAIN_ARGS[@]}"
|
main "${MAIN_ARGS[@]}"
|
||||||
|
fi
|
||||||
|
|
Loading…
Reference in a new issue