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

Problem with script to run veeam-hardened.sh #1

Open
mimoishere opened this issue Jun 2, 2023 · 3 comments
Open

Problem with script to run veeam-hardened.sh #1

mimoishere opened this issue Jun 2, 2023 · 3 comments

Comments

@mimoishere
Copy link

Describe the bug
Error:
bweadmin@bweintdevapp:$ pwd
/home/bweadmin
bweadmin@bweintdevapp:
$ sudo bash veeam.harden.sh > output.txt 2>&1
bweadmin@bweintdevapp:~$ more output.txt
veeam.harden.sh: line 9: $'\r': command not found
veeam.harden.sh: line 11: syntax error near unexpected token $'{\r'' veeam.harden.sh: line 11: function print_job {

To Reproduce
Steps to reproduce the behavior:

  1. Go to bash line ,see erorr above
    Running : Ubuntu 20.4
@bartoque
Copy link

bartoque commented Jun 6, 2023

due to the \r being mentioned, did you by any chance copy/paste the script and edit it on Windows before copying the script to the Linux system? As it already states an error for line 9, which is actually an empty line in the original script, so it should not throw any error fro that line even.

You can retry again making sure to download the script properly, or parse the script first through dos2unix or use something like the tr command to delete the "\r" from the script?

But that would be meddling with the script, rather wanna make sure you use the actual script, just in case some steps otherwise might not be performed or incorrectly...

@mimoishere
Copy link
Author

mimoishere commented Jun 6, 2023 via email

@puremayhemtv
Copy link

I did the same thing, copied and pasted, same error. Thanks for posting this.

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

3 participants