mirror of
https://github.com/Zygo/bees.git
synced 2025-05-17 21:35:45 +02:00
Get rid of errors by using grep -E
"egrep: warning: egrep is obsolescent; using grep -E"
This commit is contained in:
parent
a32cd5247f
commit
dffd6e0b13
@ -31,7 +31,7 @@ help(){
|
|||||||
exec "$bees_bin" --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
|
do
|
||||||
TMP_ARGS="$TMP_ARGS $i"
|
TMP_ARGS="$TMP_ARGS $i"
|
||||||
done
|
done
|
||||||
@ -71,7 +71,7 @@ done
|
|||||||
[ -z "$UUID" ] && help
|
[ -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"
|
[ ! -f "$FILE_CONFIG" ] && ERRO "No config for $UUID"
|
||||||
INFO "Find $UUID in $FILE_CONFIG, use as conf"
|
INFO "Find $UUID in $FILE_CONFIG, use as conf"
|
||||||
source "$FILE_CONFIG"
|
source "$FILE_CONFIG"
|
||||||
|
Loading…
x
Reference in New Issue
Block a user