mirror of
				https://github.com/MariaDB/server.git
				synced 2025-11-03 14:33:32 +03:00 
			
		
		
		
	don't checkin for Administrator or mysqldev sql/log.cc@1.157 restored a bugfix that was lost in a merge
		
			
				
	
	
		
			23 lines
		
	
	
		
			490 B
		
	
	
	
		
			Bash
		
	
	
		
			Executable File
		
	
	
	
	
			
		
		
	
	
			23 lines
		
	
	
		
			490 B
		
	
	
	
		
			Bash
		
	
	
		
			Executable File
		
	
	
	
	
#!/bin/sh
 | 
						|
 | 
						|
if [ "$BK_USER" = "Administrator" -o "$BK_USER" = "mysqldev" ]
 | 
						|
then
 | 
						|
 echo "Error: you cannot checkin as 'Administrator' or 'mysqldev' user."
 | 
						|
 echo "as a workaround set BK_USER to your nickname"
 | 
						|
 echo "e.g.: export BK_USER='bar'"
 | 
						|
 echo ""
 | 
						|
 echo "Checkin FAILED!"
 | 
						|
 echo "Set BK_USER and retry."
 | 
						|
 exit 1
 | 
						|
fi
 | 
						|
 | 
						|
if [ `tail -c1 $BK_FILE` ]
 | 
						|
then
 | 
						|
 echo "File $BK_FILE does not end with a new-line character!"
 | 
						|
 echo ""
 | 
						|
 echo "Checkin FAILED!"
 | 
						|
 echo "Fix the problem and retry."
 | 
						|
 exit 1
 | 
						|
fi
 | 
						|
 |