Yes, if i enter '3' it will say
Code:
bash: 3: command not found
And it will ONLY happen if i run main from updater.
If i solo run main it will work perfectly.
I forgot to mention that i am using korn shell (forced to use). So its
#!/bin/ksh
If i enter something invalid like 'asjkdghafsd' it will also display that as invalid command.
It's acting like its not running the script. It will display all the needing output. But when i use option in that menu, it will behave as if i typed it in regular shell, like none of the scripts are ran.
So i don't know.. Maybe exits from outside the case?
But why only when started from updater - i don't have a clue!
I'll try by removing echo -n as soon as i get on the pc
One more edit:
You might be on to something with echo -n.
Last night i was doing some troubleshooting and was simulating a bad update.
Script version had a var $sswv always lower than $currentsswv. So right after updating and re running the script by updater, it will ask for update again!
Whatever i type in, whether that be enter, yes, no, ahbshejan, it will enter the update procedure and go into an update loop... And i also had echo -n right after the question for an update.
Weird much?