Hello
Zam_1234,
I have a few to questions pose in response first:-
- I'm assuming that the line numbers are not actually in your script. Is that right?
- What output/errors do you get?
- What OS and version are you using?
- What logical process have you considered? (to help steer us to follow what you are trying to achieve)
Most importantly,
What output/errors do you get?
I suspect that at some point your script is in another directory, so your
cd .. on line 12 is going wrong. You might be better to either remember the starting directory and explicity change back to that, or (if available) use
pushd &
popd to handle this for you.
If you can show us the normal output of a test run that doesn't cost you hours of waiting and also a run where you insert the line
set -x before you set the BENCH variable, then that would be good too.
If the output from the
make commands is going to be huge, push them out to a file if you want to keep them or just to
/dev/null if not, just whilst we're testing the rest of it anyway. There are no glaring errors to me.
Thanks, in advance,
Robin