From dffd6e0b13f9f049f45f7ae5bf7e64fa71804646 Mon Sep 17 00:00:00 2001 From: Khalil Santana Date: Wed, 5 Oct 2022 22:03:20 -0300 Subject: [PATCH] Get rid of errors by using grep -E "egrep: warning: egrep is obsolescent; using grep -E" --- scripts/beesd.in | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/scripts/beesd.in b/scripts/beesd.in index b1f0388..765896e 100755 --- a/scripts/beesd.in +++ b/scripts/beesd.in @@ -31,7 +31,7 @@ help(){ exec "$bees_bin" --help } -for i in $("$bees_bin" --help 2>&1 | grep "\-\-" | sed -e "s/^[^-]*-/-/" -e "s/,[^-]*--/ --/" -e "s/ [^-]*$//") +for i in $("$bees_bin" --help 2>&1 | grep -E "--" | sed -e "s/^[^-]*-/-/" -e "s/,[^-]*--/ --/" -e "s/ [^-]*$//") do TMP_ARGS="$TMP_ARGS $i" done @@ -71,7 +71,7 @@ done [ -z "$UUID" ] && help -FILE_CONFIG="$(egrep -l '^[^#]*UUID\s*=\s*"?'"$UUID" "$CONFIG_DIR"/*.conf | head -1)" +FILE_CONFIG="$(grep -E -l '^[^#]*UUID\s*=\s*"?'"$UUID" "$CONFIG_DIR"/*.conf | head -1)" [ ! -f "$FILE_CONFIG" ] && ERRO "No config for $UUID" INFO "Find $UUID in $FILE_CONFIG, use as conf" source "$FILE_CONFIG"