Script for updating a repository