I'm having a difficult time finding this error. The script is pretty simple, you receive some information from the command line and the it ask you if you want to continue. The script continues, but it seems that miss the if.
print "Press Y to continue"
if [$res != "Y"];then
print "Exiting Script"
./change_version.sh 2.2.17 2.2.21 apache-2.2.17-testing-daniel apache-2.2.21-testing-daniel
You are about to copy the configurations and htdocs files from apache-2.2.17-testing-daniel to apache-2.2.21-testing-daniel
Press Y to continue
./change_version.sh: [N: not found [No such file or directory]
Copying configuration files
Modifying files for the new version