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

Suggested fixes by ShellCheck #21

Closed
wants to merge 11 commits into from
Closed

Suggested fixes by ShellCheck #21

wants to merge 11 commits into from

Conversation

enoch85
Copy link
Member

@enoch85 enoch85 commented Aug 10, 2016

Not tested cc @ezraholm50

@enoch85 enoch85 mentioned this pull request Aug 10, 2016
1 task
@enoch85
Copy link
Member Author

enoch85 commented Aug 15, 2016

@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)
Copy link
Member Author

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?

Copy link
Member

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.

@enoch85
Copy link
Member Author

enoch85 commented Aug 17, 2016

This PR failed. ShellCheck is wrong, we are right. WIll close.

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

Successfully merging this pull request may close these issues.

2 participants