Skip to content

line endings need to be changed for hardware script to run on Linux #2

Open
@bschwarz

Description

@bschwarz

I just wanted to leave this issue here for anyone that might run into the same problem. I am not sure if this is still maintained. I also can not submit a patch at the moment, but I wanted to document what needs to change in order to make sure the discover hardware script runs successfully on a Linux/Unix machine.

In resiliency-studio-service/src/main/java/com/att/tta/rs/util/AppUtil.java, about line 170:
Change:
String script = Resources.toString(url, Charsets.UTF_8);

to
String script = Resources.toString(url, Charsets.UTF_8).replaceAll("\\r", "");

Of course, there might be a better solution, but main point of this issue is to record this for others, if needed.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions