- Fixed a syntax error by replacing `}` with `fi` in the directory existence check - Ensured proper shell script syntax for conditional block termination