Fix not being able to do literally anything

This commit is contained in:
Salt 2020-05-15 03:18:36 -05:00
parent 29cb4c47ed
commit dddc92f6fb

View File

@ -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