From 26fffb92f0424d8e898a39225fd29cff90a3351a Mon Sep 17 00:00:00 2001 From: Salt Date: Fri, 15 May 2020 03:27:21 -0500 Subject: [PATCH] Make dying on config pregen more explicit --- firestarter | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) 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