Uploaded image for project: 'Chukwa (retired)'
  1. Chukwa (retired)
  2. CHUKWA-453

Shell scripts should use !/bin/bash not !/bin/sh

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • 0.4.0
    • 0.4.0
    • None
    • None

    Description

      Some of the scripts uses the function key word which is a feature in bash and not supported in shell.
      Running the agent.sh for example gives bin/agent.sh: 24: function: not found

      The script headers should be changes to !/bin/bash and then it works.
      I propose this be done for all of the sh scripts for consistency.

      I'll attach a patch today.

      Attachments

        1. CHUKWA-453-ENVBASH.patch
          14 kB
          Gerrit Jansen van Vuuren
        2. CHUKWA-453.patch
          9 kB
          Gerrit Jansen van Vuuren

        Activity

          People

            Unassigned Unassigned
            gerritjvv Gerrit Jansen van Vuuren
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: