-
-
Notifications
You must be signed in to change notification settings - Fork 657
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
Suggested fixes by ShellCheck #21
Conversation
@ezraholm50 Can you please merge all your changes into this PR and I'll check it later today. Thanks! |
@@ -3,13 +3,13 @@ | |||
# Tech and Me, ©2016 - www.techandme.se | |||
|
|||
SHUF=$(shuf -i 17-20 -n 1) | |||
NEWMYSQLPASS=$(cat /dev/urandom | tr -dc "a-zA-Z0-9@#*=" | fold -w $SHUF | head -n 1) | |||
NEWMYSQLPASS=$(cat < /dev/urandom | tr -dc "a-zA-Z0-9@#*=" | fold -w "$SHUF" | head -n 1) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Shoulnd't this be a '>' instead?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Nope said it should be this way, thought it was strange to, but after changing the error went away so, we'll see.
This PR failed. ShellCheck is wrong, we are right. WIll close. |
Not tested cc @ezraholm50