Shellcheck pass on web-add.sh and --gid fix #1

Merged
benpro merged 11 commits from shellcheck-web-add into master 2018-11-07 15:44:47 +01:00
First-time contributor

Please review! You're probably more familiar with the code than I am.

Please review! You're probably more familiar with the code than I am.
benpro was assigned by Ghost 2018-10-25 17:50:11 +02:00
Contributor

LGTM but did you try the script with your patch? Is it working well? Nothing broken?
This is a big commit and not atomic, not easy to review.

LGTM but did you try the script with your patch? Is it working well? Nothing broken? This is a big commit and not atomic, not easy to review.
Author
First-time contributor

Are you looking at the unified diff or the individual commits? I
tried to make them as atomic as I could, but yes I'll have to be
more careful in the future.

I've mostly tested vhost creation /
deletion, as well as aliases. And have tested some specific syntax
changes in the shell.

#!/bin/env bash
echo ${in_uid:+'--uid' "$in_uid"}
in_uid=39
echo ${in_uid:+'--uid' "$in_uid"}
Are you looking at the unified diff or the individual commits? I tried to make them as atomic as I could, but yes I'll have to be more careful in the future. I've mostly tested vhost creation / deletion, as well as aliases. And have tested some specific syntax changes in the shell. ``` #!/bin/env bash echo ${in_uid:+'--uid' "$in_uid"} in_uid=39 echo ${in_uid:+'--uid' "$in_uid"} ```
Contributor

Are you looking at the unified diff or the individual commits? I tried to make them as atomic as I could, but yes I’ll have to be more careful in the future.

The unified diff a.k.a the full merge request.

> Are you looking at the unified diff or the individual commits? I tried to make them as atomic as I could, but yes I’ll have to be more careful in the future. The unified diff a.k.a the full merge request.
Author
First-time contributor

The next script I review I'll keep it to one function per pull request if you want. Instead of one commit per shellcheck rule with a unified pull request. These types of linting passes tend to be a bit messy by nature.

The next script I review I'll keep it to one function per pull request if you want. Instead of one commit per shellcheck rule with a unified pull request. These types of linting passes tend to be a bit messy by nature.
Contributor

These types of linting passes tend to be a bit messy by nature.

True.

I'm OK to merge it.
What about @vlaborie?

> These types of linting passes tend to be a bit messy by nature. True. I'm OK to merge it. What about @vlaborie?
Ghost added the
Bug
Script
labels 2018-10-29 15:19:40 +01:00
Ghost changed title from Shellcheck pass on web-add.sh to Shellcheck pass on web-add.sh and --gid fix 2018-10-29 15:26:20 +01:00
Author
First-time contributor

Looks good to me and can be merged if it has been properly tested.

Looks good to me and can be merged if it has been properly tested.
benpro closed this pull request 2018-11-07 15:44:47 +01:00
Ghost deleted branch shellcheck-web-add 2018-11-07 15:53:43 +01:00
Sign in to join this conversation.
No description provided.