We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 29b4dae commit aa0617dCopy full SHA for aa0617d
share/github-backup-utils/ghe-backup-config
@@ -510,8 +510,9 @@ ghe_debug() {
510
version() {
511
local v="${*#v}"
512
513
+ # Discard stderr and always return true as trailing alpha (eg. "v1.2.3pre") will upset printf
514
# shellcheck disable=SC2183,SC2086 # We want to glob (SC2086) and expect 4 (fuzzy) params (SC2183)
- printf "%d%03d%03d%03d\n" ${v//./ }
515
+ printf "%d%03d%03d%03d\n" ${v//./ } 2>/dev/null || true
516
}
517
518
# The list of gists returned by the source changed in 2.16.23, 2.17.14,
0 commit comments