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