mirror of
https://github.com/Zygo/bees.git
synced 2025-05-17 21:35:45 +02:00
Minimal changes in beesd script to make it functional in my system
This commit is contained in:
parent
7a8d98f94d
commit
01cb75ac0e
@ -31,20 +31,18 @@ help(){
|
||||
exec "$bees_bin" --help
|
||||
}
|
||||
|
||||
get_bees_supp_opts(){
|
||||
"$bees_bin" --help |& awk '/--../ { gsub( ",", "" ); print $1 " " $2}'
|
||||
}
|
||||
|
||||
SUPPORTED_ARGS=(
|
||||
$(get_bees_supp_opts)
|
||||
)
|
||||
for i in $(/usr/lib/bees/bees --help 2>&1 | grep "\-\-" | sed -e "s/^[^-]*-/-/" -e "s/,[^-]*--/ --/" -e "s/ [^-]*$//")
|
||||
do
|
||||
TMP_ARGS="$TMP_ARGS $i"
|
||||
done
|
||||
IFS=" " read -r -a SUPPORTED_ARGS <<< $TMP_ARGS
|
||||
NOT_SUPPORTED_ARGS=()
|
||||
ARGUMENTS=()
|
||||
|
||||
for arg in "${@}"; do
|
||||
supp=false
|
||||
for supp_arg in "${SUPPORTED_ARGS[@]}"; do
|
||||
if [ "$arg" == "$supp_arg" ]; then
|
||||
if [[ "$arg" == ${supp_arg}* ]]; then
|
||||
supp=true
|
||||
break
|
||||
fi
|
||||
|
Loading…
x
Reference in New Issue
Block a user