fi on line 11 seems to be redundant/mistake?
fi on line 11 seems to be redundant/mistake?