From: Alexander Barton Date: Wed, 6 Mar 2019 14:18:08 +0000 (+0100) Subject: backup-audit: Fix shellcheck SC2196, dont use "egrep" X-Git-Url: https://arthur.barton.de/cgi-bin/gitweb.cgi?p=backup-script.git;a=commitdiff_plain;h=ce74631c73649093557b0201722c930d07cfd66f backup-audit: Fix shellcheck SC2196, dont use "egrep" egrep is non-standard and deprecated. Use grep -E instead. --- 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