From 633d6d32c911ab55dba862f1164fcd2e418c053a Mon Sep 17 00:00:00 2001 From: Thomas Levine <_@thomaslevine.com> Date: Sat, 27 Feb 2016 17:44:35 +0000 Subject: [PATCH] better than main --- urchin | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/urchin b/urchin index b2a49f4..31ce60e 100755 --- a/urchin +++ b/urchin @@ -317,7 +317,7 @@ urchin_molly_guard() { exit 1 } -main() { +if test -z "$I_AM_SOURCING_URCHIN_IN_A_TEST"; then shell_for_sh_tests= force=false exit_on_fail=false @@ -370,6 +370,4 @@ main() { else urchin_molly_guard fi -} - -${I_AM_SOURCING_URCHIN_IN_A_TEST:-main} +fi