Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
bschwarz opened this issue Sep 1, 2020 · 0 comments
Open

Comments

@bschwarz
Copy link

bschwarz commented Sep 1, 2020

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant