Create another script; fix-samples.sh and put it in the root of the repository (next to setup-samples.sh).
Use the script to record the commands you executed in the previous issue to sort the misplaced and misspelled files.
So that you can run the two scripts in sequence.
./setup-samples.sh # Creates sample files
./fix-samples.sh # bring order to the samples