We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 420a828 + 53add6c commit c5aaf46Copy full SHA for c5aaf46
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