diff --git a/firestarter b/firestarter index 0c679bd..750ca8d 100755 --- a/firestarter +++ b/firestarter @@ -571,7 +571,10 @@ main() { # Early hook for help [ -n "$_opthelp" ] && printhelp && exit 0 # Early hook for generating configs - [ -n "$_optpregen" ] && genconfigs && exit $? + if [ -n "$_optpregen" ]; then + genconfigs + exit $? + fi # Ensure our running environment is sane and that we're not about to nest if [ -z "$_optdryrun" ] && [ -z "$_optpregen" ]; then for pid in $(pgrep firestarter); do