Let $X$ be a topological space. If $\gamma_1,\gamma_2:[0,1]\rightarrow X$ are continuous functions and $\gamma_1(1)=\gamma_2(0)$, show that $$\gamma:[0,1]\rightarrow X, \gamma(t)= \begin{cases} \gamma_1(2t) &\mbox{ if } t \in[0,\frac{1}{2}) \\ \gamma_2(2t-1) &\mbox{ if } t\in(\frac{1}{2},1] \end{cases}$$
is continuous.
I think this has something to do with the Urysohn lemma, because $[0,1]$ is compact and Hausdorff, but I'm not sure how this could help me.