mirror of
				https://github.com/Zygo/bees.git
				synced 2025-11-04 12:10:34 +01:00 
			
		
		
		
	Fix beesd script arg parsing to respect PREFIX
Without this, if you install to a different PREFIX such as /usr/local it will fail to recognize any arguments and if you use the systemd unit, that makes --no-timestamps the first NOT_SUPPORTED_ARG which will get passed to uuidparse, which doesn't recognize it and errors.
This commit is contained in:
		
				
					committed by
					
						
						Khalil Santana
					
				
			
			
				
	
			
			
			
						parent
						
							77cf2d794e
						
					
				
				
					commit
					20c469245c
				
			@@ -31,7 +31,7 @@ help(){
 | 
				
			|||||||
    exec "$bees_bin" --help
 | 
					    exec "$bees_bin" --help
 | 
				
			||||||
}
 | 
					}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
for i in $(/usr/lib/bees/bees --help 2>&1 | grep "\-\-" | sed -e "s/^[^-]*-/-/" -e "s/,[^-]*--/ --/" -e "s/ [^-]*$//")
 | 
					for i in $("$bees_bin" --help 2>&1 | grep "\-\-" | sed -e "s/^[^-]*-/-/" -e "s/,[^-]*--/ --/" -e "s/ [^-]*$//")
 | 
				
			||||||
do
 | 
					do
 | 
				
			||||||
   TMP_ARGS="$TMP_ARGS $i"
 | 
					   TMP_ARGS="$TMP_ARGS $i"
 | 
				
			||||||
done
 | 
					done
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user