-
Notifications
You must be signed in to change notification settings - Fork 7
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
style: unify Bash code style #5568
Open
jaskfla
wants to merge
27
commits into
dev
Choose a base branch
from
shellharden
base: dev
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
+479
−312
Open
Changes from 1 commit
Commits
Show all changes
27 commits
Select commit
Hold shift + click to select a range
80a8957
delete unused variable
jaskfla 0a80dbe
portable shebang for Bash scripts
jaskfla bd6f024
prefer `.` to `source`
jaskfla fa29c90
prefer `echo` without `""` for blank lines
jaskfla 3807364
`download-env-vars`: log in to Bitwarden first
jaskfla 92433da
simplify loop over `*.env.example` files
jaskfla d34a646
convenience variables for ANSI codes/sequences
jaskfla 64b9ac7
inline `then` in `if` header
jaskfla 2213a9a
update env var message to refer to Bitwarden
jaskfla 8702ea2
prettify `download-env-vars` output
jaskfla 73e1797
prettify `backendStartDev.sh` output
jaskfla a1db38f
prettify `dumpDatabase.sh` output
jaskfla 77b76b2
prefer ``[[`` over `[`, and `=` over `==` in Bash
jaskfla 1d10de0
prefer `$(…)` over backtick command substitution
jaskfla 0be5e6f
prettify `patchMvRefereshModule.sh` output
jaskfla 15b43de
prefer single quotes when no variables
jaskfla 507fa83
prefer ``(( ))`` over `[[ ]]` for arithmetic
jaskfla 1160b28
prefer array over string in `buildNonInternalDeps`
jaskfla 0ba73f1
prefer array for `getDeployablePackages.sh`
jaskfla ca00437
refactor: clearer way to get current branch
jaskfla 97c51d6
double-quote variables, avoiding `${…}`
jaskfla 090d23c
prefer array in `mergeEnvForDB.sh`
jaskfla 8da68e4
exit on error
jaskfla cca8b59
Merge branch 'dev' into shellharden
jaskfla 65907a7
Merge branch 'dev' into shellharden
jaskfla 65bc43b
Merge branch 'dev' into shellharden
jaskfla 8cd0e8f
Merge branch 'dev' into shellharden
jaskfla File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,4 @@ | ||
#!/bin/bash | ||
DIR=$(dirname "$0") | ||
|
||
|
||
DIR=$(pwd "$0") | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -49,7 +49,6 @@ for dependency in ${internal_dependencies[@]}; do | |
done | ||
|
||
# remove any duplicates | ||
deduplicated_union=() | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Never used and not exported |
||
for i in "${!internal_dependencies[@]}"; do | ||
for j in "${!internal_dependencies[@]}"; do | ||
if [[ i -ne j ]] && [[ ${internal_dependencies[i]} = ${internal_dependencies[j]} ]]; then | ||
|
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
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.
Immediately overwritten in line 4