diff --git a/firestarter2.bash b/firestarter2.bash
index cc6b518..058f051 100755
--- a/firestarter2.bash
+++ b/firestarter2.bash
@@ -79,7 +79,7 @@ gettarget() {
 	local firstline
 	while read -r checkline; do
 		if [ -z "$firstline" ]; then
-			if ["$checkline" = "#.fsdefaults" ]; then
+			if [ "$checkline" = "#.fsdefaults" ]; then
 				firstline=1
 				continue
 			else
@@ -571,7 +571,7 @@ main() {
 	# Early hook for help
 	[ -n "$_opthelp" ] && printhelp && exit 0
 	# Early hook for generating configs
-	[ -n "$_optpregen" ] && genconfigs; exit $?
+	[ -n "$_optpregen" ] && genconfigs && exit $?
 	# 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