Skip to content

Apply script end line characters to target system #77

@DavidJaeck

Description

@DavidJaeck

Description:

  • the RPM is build on windows
  • pom.xml defines target system:
    <leadOverrideOperatingSystem>LINUX</leadOverrideOperatingSystem>
  • pom.xml defines a script:
    <afterInstallation> <interpreter>/bin/bash</interpreter> <file>${project.basedir}/scripts/post.sh</file> </afterInstallation>
  • RPM is installed on linux
  • execution of script fails with:
    /var/tmp/rpm-tmp.7IH57w: /etc/init.d/eftd: /bin/bash^M: bad interpreter: No such file or directory

Question:

The error message shows how there is a bad end line character added during the RPM build, resulting in the script failing.
The question is now, if this might be due to faulty configuration on my side, or if this can be considered a feature/bug.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions