diff --git a/.ecrc b/.ecrc new file mode 100644 index 0000000..bce93d2 --- /dev/null +++ b/.ecrc @@ -0,0 +1,6 @@ +{ + "Exclude": [ + ".git", + "LICENSE" + ] +} diff --git a/.editorconfig b/.editorconfig new file mode 100644 index 0000000..47c5c7c --- /dev/null +++ b/.editorconfig @@ -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 diff --git a/plugin.sh b/plugin.sh index 08a2981..0d3e371 100755 --- a/plugin.sh +++ b/plugin.sh @@ -75,13 +75,13 @@ if [[ "${PLUGIN_AUTO_TAG:-}" == "true" ]]; then major=$(echo "${TAG}" |awk -F'.' '{print $1}') minor=$(echo "${TAG}" |awk -F'.' '{print $2}') release=$(echo "${TAG}" |awk -F'.' '{print $3}') - + major=${major:-0} minor=${minor:-0} release=${release:-0} - + echo "${major},${major}.${minor},${major}.${minor}.${release},latest" > .tags - fi + fi fi if [ -n "${PLUGIN_MIRRORS:-}" ]; then