whitespaces normalization #72
No reviewers
Labels
No labels
bug
bullseye
discussion
duplicate
enhancement
help wanted
invalid
question
suggestion
wontfix
No milestone
No project
No assignees
3 participants
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference: evolix/evocheck#72
Loading…
Reference in a new issue
No description provided.
Delete branch "normalize-whitespaces"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
@ -904,3 +902,2 @@
if [[ -n "$statResult" ]]; then
if [ -n "$statResult" ]; then
echo 'IS_OLD_HOME_DIR FAILED!'
if [[ "$VERBOSE" == 1 ]]; then
In this case, this is pure appreciated bashism.
I like to use the double brackets because of "Using the ... test construct, rather than [ ... ] can prevent many logic errors in scripts. For example, the &&, ||, <, and > operators work within a test, despite giving an error within a [ ] construct."
https://www.tldp.org/LDP/abs/html/abs-guide.html#DBLBRACKETS
I use
[[ ]]
all the time. Except if the script has already a single bracket, I will not "recode" it with double brackets.Right, these changes shouldn't have gone in this commit.
And I thought this script was not bash.
I'll remove those changes.
That would be the contrary. Pure bash. We will not focus on POSIX things. (So you could use
&>
in evocheck.) ;)The OpenBSD part should be pure sh, but is not production ready.
OpenBSD has already his branch so I guess we could already delete all things related to OpenBSD, and drop the
if debian
… But I will wait for @drustan.@ -763,2 +761,3 @@
mysql_myisam_indexes mysql_qcache mysql_qcache_mem \
mysql_sorts mysql_tmp_tables; do
if [[ ! -L /etc/munin/plugins/$file ]]; then
That's note a "whitespaces" normalization.
test changes have been reverted.
LGTM. Still WIP?
There are many "not so clean" things to redo, whitespaces was one. Thanks.
Pas pire
@jlecour I'm fairly certain shellcheck will emit warnings that are shell dependent. An idea would to add it to a pre-commit hook in git.
WIP: whitespaces normalizationto whitespaces normalizationI've removed the WIP tag. Let's merge this thing!
So, there are conflicts, I'll rebase first.
Conflicts have been resolved. It can be merged