shell: add check or git clone logic.