I am attempting to create a recursive directory tree with some nested directories along the way.
While testing this manually in bash it functions without issue. However while testing this command in a bash script it is broken...instead of creating the directory tree, it creates two directories '{dir1,dir2/' and then {subdir1,subdir2},dir3,dir4} inside of the first.
Here is the command:
mkdir -p main/{dir1,dir2/{subdir1,subdir2},dir3,dir4}
Any thoughts?
Thanks!