From ce74631c73649093557b0201722c930d07cfd66f Mon Sep 17 00:00:00 2001 From: Alexander Barton Date: Wed, 6 Mar 2019 15:18:08 +0100 Subject: [PATCH] backup-audit: Fix shellcheck SC2196, dont use "egrep" egrep is non-standard and deprecated. Use grep -E instead. --- bin/backup-audit | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/bin/backup-audit b/bin/backup-audit index 4371bc7..cb44382 100755 --- a/bin/backup-audit +++ b/bin/backup-audit @@ -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 -- 2.39.2