mirror of
				https://github.com/yggdrasil-network/yggdrasil-go.git
				synced 2025-11-04 11:15:07 +03:00 
			
		
		
		
	
		
			
				
	
	
		
			11 lines
		
	
	
	
		
			216 B
		
	
	
	
		
			Bash
		
	
	
	
	
	
			
		
		
	
	
			11 lines
		
	
	
	
		
			216 B
		
	
	
	
		
			Bash
		
	
	
	
	
	
#!/bin/sh
 | 
						|
 | 
						|
case "$*" in
 | 
						|
  *--bare*)
 | 
						|
    # Remove the "v" prefix
 | 
						|
    git describe --tags --match="v[0-9]*\.[0-9]*\.[0-9]*" | cut -c 2-
 | 
						|
    ;;
 | 
						|
  *)
 | 
						|
    git describe --tags --match="v[0-9]*\.[0-9]*\.[0-9]*"
 | 
						|
    ;;
 | 
						|
esac
 |