[Linux] Startup script fixed

  • I have finally put some time to finally fix the linux startup script!


    If anybody noticed (or maybe not?), the line


    Code
    if ! [[ $SCREEN_NAME =~ ^[a-zA-Z0-9_.-]+$ ]]; then


    was always evaluating to true, thus exiting prematurely. The problem was that fetching the screen name from the configuration file also snatched the new line character \n (or carriage return caracter \r) and, thus, failed as it is an invalid screen character name! Piping with tr -d '\n\r' removed any trailing invalid characters and solved it. (Yay!)


    Same thing with the memory limit config option.


    Also, the nice colors weren't reset. This also was fixed.


    Enjoy!


Participate now!

Don’t have an account yet? Create a new account now and be part of our community!