mirror of
				https://github.com/yggdrasil-network/yggdrasil-go.git
				synced 2025-11-04 11:15:07 +03:00 
			
		
		
		
	Add a null check to name.sh
This commit is contained in:
		
							parent
							
								
									6fcd8a8dbd
								
							
						
					
					
						commit
						8c7b9e2f90
					
				
					 1 changed files with 2 additions and 2 deletions
				
			
		| 
						 | 
					@ -4,8 +4,8 @@
 | 
				
			||||||
BRANCH=$(git symbolic-ref --short HEAD 2>/dev/null)
 | 
					BRANCH=$(git symbolic-ref --short HEAD 2>/dev/null)
 | 
				
			||||||
 | 
					
 | 
				
			||||||
# Complain if the git history is not available
 | 
					# Complain if the git history is not available
 | 
				
			||||||
if [ $? != 0 ]; then
 | 
					if [ $? != 0 ] || [ -z "$BRANCH" ]; then
 | 
				
			||||||
  printf "unknown"
 | 
					  printf "yggdrasil"
 | 
				
			||||||
  exit 1
 | 
					  exit 1
 | 
				
			||||||
fi
 | 
					fi
 | 
				
			||||||
 | 
					
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue