We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent c9f456a commit 53add6cCopy full SHA for 53add6c
nixos/modules/services/backup/borgbackup.nix
@@ -44,8 +44,8 @@ let
44
borgWrapper () {
45
local result
46
borg "$@" && result=$? || result=$?
47
- if [[ -z "${toString cfg.failOnWarnings}" ]] && [[ "$result" == 1 ]]; then
48
- echo "ignoring warning return value 1"
+ if [[ -z "${toString cfg.failOnWarnings}" ]] && [[ "$result" == 1 || ("$result" -ge 100 && "$result" -le 127) ]]; then
+ echo "ignoring warning return value $result"
49
return 0
50
else
51
return "$result"
0 commit comments