mirror of
				https://github.com/yggdrasil-network/yggdrasil-go.git
				synced 2025-11-04 03:05:07 +03:00 
			
		
		
		
	Fix incorrect check
This commit is contained in:
		
							parent
							
								
									7eaee172cf
								
							
						
					
					
						commit
						6fcd8a8dbd
					
				
					 1 changed files with 3 additions and 2 deletions
				
			
		| 
						 | 
					@ -5,7 +5,7 @@ TAG=$(git describe --abbrev=0 --tags --match="v[0-9]*\.[0-9]*\.[0-9]*" 2>/dev/nu
 | 
				
			||||||
 | 
					
 | 
				
			||||||
# Did getting the tag succeed?
 | 
					# Did getting the tag succeed?
 | 
				
			||||||
if [ $? != 0 ] || [ -z "$TAG" ]; then
 | 
					if [ $? != 0 ] || [ -z "$TAG" ]; then
 | 
				
			||||||
  printf "unknown"
 | 
					  printf -- "unknown"
 | 
				
			||||||
  exit 1
 | 
					  exit 1
 | 
				
			||||||
fi
 | 
					fi
 | 
				
			||||||
 | 
					
 | 
				
			||||||
| 
						 | 
					@ -34,7 +34,8 @@ if [ "$BRANCH" != "master" ]; then
 | 
				
			||||||
  BUILD=$(git rev-list $TAG..HEAD --count 2>/dev/null)
 | 
					  BUILD=$(git rev-list $TAG..HEAD --count 2>/dev/null)
 | 
				
			||||||
 | 
					
 | 
				
			||||||
  # Did getting the count of commits since the tag succeed?
 | 
					  # Did getting the count of commits since the tag succeed?
 | 
				
			||||||
  if [ $? != 0 ] && [ -z "$BUILD" ]; then
 | 
					  if [ $? != 0 ] || [ -z "$BUILD" ]; then
 | 
				
			||||||
 | 
					    printf -- "-unknown"
 | 
				
			||||||
    exit 1
 | 
					    exit 1
 | 
				
			||||||
  fi
 | 
					  fi
 | 
				
			||||||
 | 
					
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue