mirror of
				https://github.com/yggdrasil-network/yggdrasil-go.git
				synced 2025-11-04 03:05:07 +03:00 
			
		
		
		
	Try symbolic-ref to get branch name
This commit is contained in:
		
							parent
							
								
									d58c971559
								
							
						
					
					
						commit
						c57cf73219
					
				
					 1 changed files with 1 additions and 1 deletions
				
			
		| 
						 | 
					@ -1,7 +1,7 @@
 | 
				
			||||||
#!/bin/sh
 | 
					#!/bin/sh
 | 
				
			||||||
 | 
					
 | 
				
			||||||
# Get the branch name
 | 
					# Get the branch name
 | 
				
			||||||
BRANCH=$(git name-rev --name-only HEAD 2>/dev/null)
 | 
					BRANCH=$(git symbolic-ref --short HEAD 2>/dev/null)
 | 
				
			||||||
 | 
					
 | 
				
			||||||
# Check if the branch name is not master
 | 
					# Check if the branch name is not master
 | 
				
			||||||
if [ "$BRANCH" = "master" ]; then
 | 
					if [ "$BRANCH" = "master" ]; then
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue