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

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

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 0.4.0
    • Fix Version/s: 0.4.0
    • Component/s: None
    • Labels:
      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.patch
          9 kB
          Gerrit Jansen van Vuuren
        2. CHUKWA-453-ENVBASH.patch
          14 kB
          Gerrit Jansen van Vuuren

          Activity

            People

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

              Dates

              • Created:
                Updated:
                Resolved: