added missing fi to the end of the script file.