Uppercased execution type not recognized and command fails

Issue #1 closed
Felipe Kraemer repo owner created an issue

If the following is executed:

atl fecru 4.4.1 START

START is not getting converted to lowercase and the command fails as a consequence. The following is written:

Invalid execution type. Valid options are 'install', 'start', 'stop' and 'restart'. Script will terminate.

Comments (4)

  1. Felipe Kraemer reporter

    There was a problem when converting the argument received by the script into lowercase. Line #19 was changed from:

    START="$(tr [A-Z] [a-z] <<< "$START")"
    

    to the following:

    EXECUTION="$(tr [A-Z] [a-z] <<< "$EXECUTION")"
    

    Now the script works even if the argument is uppercased.

  2. Log in to comment