Fixed missing esac statement and missing ;; statement .