]> arthur.barton.de Git - backup-script.git/blobdiff - bin/backup-audit
backup-audit: Fix shellcheck SC2196, dont use "egrep"
[backup-script.git] / bin / backup-audit
index 4371bc7ae7ede3e3abb354720edf1684c3521f9e..cb44382a45a7cf0639f34caef5dcb085328ee52b 100755 (executable)
@@ -1,7 +1,7 @@
 #!/bin/bash
 #
 # backup-script system for cloning systems using rsync
-# Copyright (c)2008-2018 Alexander Barton, alex@barton.de
+# Copyright (c)2008-2019 Alexander Barton, alex@barton.de
 #
 # This program is free software; you can redistribute it and/or modify
 # it under the terms of the GNU General Public License as published by
@@ -259,7 +259,7 @@ DiffGenerations() {
                        ListDirectory "${gen2_d}" "${dir}" >"$tmp_2"
                        if ! diff -U 0 "$tmp_1" "$tmp_2" >"$tmp_diff"; then
                                BeginDiff "\"$dir\" directory"
-                               tail -n +3 "$tmp_diff" | egrep -v '^@@ ' | PipeDiff
+                               tail -n +3 "$tmp_diff" | grep -Ev '^@@ ' | PipeDiff
                                EndDiff
                                return_code=1
                        fi