-
Notifications
You must be signed in to change notification settings - Fork 216
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
shfmt and shellcheck compliance #368
base: master
Are you sure you want to change the base?
Conversation
Thank you for your contribution. unfortunately, one or more of your commits are missing the required "Signed-off-by:" statement. Signing off is part of the Developer Certificate of Origin (DCO) which is used by this project. Read the DCO and project contributing guide carefully, and amend your commits using the git CLI. Note that this does not require any cryptography, keys or special steps to be taken. 💡 Shall we fix this?This will only take a few moments. First, clone your fork and checkout this branch using the git CLI. Next, set up your real name and email address:
Finally, run one of these commands to add the "Signed-off-by" line to your commits. If you only have one commit so far then run: Check that the message has been added properly by running "git log". |
if $(id caddy >/dev/null 2>&1); then | ||
|
||
if id caddy >/dev/null 2>&1; then |
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.
This syntax does not look right?
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.
I agree is looks funky, but removing the parens fixes the SC2091 warning in shellcheck
and it still evaluates the same.
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.
I am not a shellcheck user so this doesn't bother me. I prefer the clarity we had originally.
@@ -25,7 +25,7 @@ echo "Finding latest version from GitHub" | |||
version=$(curl -sI https://github.com/$OWNER/$REPO/releases/latest | grep -i "location:" | awk -F"/" '{ printf "%s", $NF }' | tr -d '\r') | |||
echo "$version" | |||
|
|||
if [ ! $version ]; then | |||
if [ ! "$version" ]; then |
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.
I'd be fine with this change being added.
Would you be interested in coming to our weekly call to talk about how you're using faasd? |
This is really not a functional change at all.
This is a commonly used and referenced script. I just ran
shfmt
andshellcheck
against it and resolved issues.Description
slight formatting consistency and shellcheck remediation
Motivation and Context
This change honestly solves nothing. it just makes a commonly used shell script more consistent.
How Has This Been Tested?
yes, I was able to install on a clean multipass instance as one normally would with no issue.
Types of changes
Checklist:
Commits:
git commit -s
for the Developer Certificate of Origin (DCO)Code:
Docs: