Add editorconfig and fix issues

This commit is contained in:
6543 2024-01-12 21:28:57 +01:00
parent 5d73eef647
commit 502cfdd1ef
No known key found for this signature in database
GPG Key ID: B8BE6D610E61C862
3 changed files with 25 additions and 3 deletions

6
.ecrc Normal file
View File

@ -0,0 +1,6 @@
{
"Exclude": [
".git",
"LICENSE"
]
}

16
.editorconfig Normal file
View File

@ -0,0 +1,16 @@
root = true
[*]
indent_style = space
indent_size = 2
tab_width = 2
end_of_line = lf
charset = utf-8
trim_trailing_whitespace = true
insert_final_newline = true
[*.md]
trim_trailing_whitespace = false
[Makefile]
indent_style = tab

View File

@ -75,13 +75,13 @@ if [[ "${PLUGIN_AUTO_TAG:-}" == "true" ]]; then
major=$(echo "${TAG}" |awk -F'.' '{print $1}') major=$(echo "${TAG}" |awk -F'.' '{print $1}')
minor=$(echo "${TAG}" |awk -F'.' '{print $2}') minor=$(echo "${TAG}" |awk -F'.' '{print $2}')
release=$(echo "${TAG}" |awk -F'.' '{print $3}') release=$(echo "${TAG}" |awk -F'.' '{print $3}')
major=${major:-0} major=${major:-0}
minor=${minor:-0} minor=${minor:-0}
release=${release:-0} release=${release:-0}
echo "${major},${major}.${minor},${major}.${minor}.${release},latest" > .tags echo "${major},${major}.${minor},${major}.${minor}.${release},latest" > .tags
fi fi
fi fi
if [ -n "${PLUGIN_MIRRORS:-}" ]; then if [ -n "${PLUGIN_MIRRORS:-}" ]; then