Creating a full directory tree at once
Change shebang to
#!/bin/bash
to run the script with bash as it supports brace expansion.
The problem is that you are using shell that does not support it. Your /bin/sh
does not point to /bin/bash
but to something like /bin/dash
.
https://wiki.ubuntu.com/DashAsBinSh#A.7B