You should be able to replace
git clone https://github.com/nmwsharp/variational-surface-cutting.git
cd variational-surface-cutting/ && git submodule update --init --recursive
with
git clone --recursive https://github.com/nmwsharp/variational-surface-cutting.git
cd variational-surface-cutting/
You should be able to replace
with