-
Notifications
You must be signed in to change notification settings - Fork 6
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
Comments
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... |
Thanks yes i did copy & paste, i tried like you said and it worked
thanks so much
…On Tue, 6 Jun 2023 at 10:13, bartoque ***@***.***> wrote:
due to the \r being mentioned, did you by any chance copy/paste the script
and edited 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.
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...
—
Reply to this email directly, view it on GitHub
<#1 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/A6XR2HS6I62M5VJONCCOZKTXJ3RDHANCNFSM6AAAAAAYX6UU3E>
.
You are receiving this because you authored the thread.Message ID:
***@***.***>
--
Kind Regards,
Hamim Ismail
076 6874229
|
I did the same thing, copied and pasted, same error. Thanks for posting this. |
Describe the bug
Error:
bweadmin@bweintdevapp:
$ pwd$ sudo bash veeam.harden.sh > output.txt 2>&1/home/bweadmin
bweadmin@bweintdevapp:
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:
Running : Ubuntu 20.4
The text was updated successfully, but these errors were encountered: