moved the copy into the bash script