# File lib/whenever/command_line.rb, line 80
    def updated_crontab      
      # Check for unopened or unclosed identifier blocks
      if read_crontab.index(comment_open) && !read_crontab.index(comment_close)
        warn "[fail] Unclosed indentifier; Your crontab file contains '#{comment_open}', but no '#{comment_close}'"
        exit(1)
      elsif !read_crontab.index(comment_open) && read_crontab.index(comment_close)
        warn "[fail] Unopened indentifier; Your crontab file contains '#{comment_close}', but no '#{comment_open}'"
        exit(1)
      end
      
      # If an existing identier block is found, replace it with the new cron entries
      if read_crontab.index(comment_open) && read_crontab.index(comment_close)
        read_crontab.gsub(Regexp.new("#{comment_open}.+#{comment_close}", Regexp::MULTILINE), whenever_cron.chomp)
      else # Otherwise, append the new cron entries after any existing ones
        [read_crontab, whenever_cron].join("\n\n")
      end
    end