From: Lukas Schauer Date: Mon, 10 Jul 2017 12:51:55 +0000 (+0200) Subject: allow using parts of dehydrated without running the main script (intended for testing... X-Git-Tag: v0.5.0~53 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=98ad01a110fd63ac153599908aeaa0824df6b248;p=thirdparty%2Fdehydrated.git allow using parts of dehydrated without running the main script (intended for testing parts of the script) --- diff --git a/dehydrated b/dehydrated index a381a07..35b6018 100755 --- a/dehydrated +++ b/dehydrated @@ -1318,8 +1318,10 @@ main() { # Determine OS type OSTYPE="$(uname)" -# Check for missing dependencies -check_dependencies +if [[ ! "${DEHYDRATED_NOOP:-}" = "NOOP" ]]; then + # Check for missing dependencies + check_dependencies -# Run script -main "${@:-}" + # Run script + main "${@:-}" +fi