download repo tool and give permissions