From dddc92f6fb53dbd72fe625c96fceb055b496002a Mon Sep 17 00:00:00 2001
From: Salt <rehashedsalt@cock.li>
Date: Fri, 15 May 2020 03:18:36 -0500
Subject: [PATCH] Fix not being able to do literally anything

---
 firestarter2.bash | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

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