allow using parts of dehydrated without running the main script (intended for testing parts of the script)

This commit is contained in:
Lukas Schauer
2017-07-10 14:51:55 +02:00
parent 8709d21ef2
commit 98ad01a110

View File

@@ -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