mirror of
				https://github.com/docker/compose.git
				synced 2025-10-31 11:14:02 +01:00 
			
		
		
		
	
		
			
				
	
	
		
			24 lines
		
	
	
		
			404 B
		
	
	
	
		
			Bash
		
	
	
	
	
	
			
		
		
	
	
			24 lines
		
	
	
		
			404 B
		
	
	
	
		
			Bash
		
	
	
	
	
	
| #!/bin/bash
 | |
| #
 | |
| # Util functions for release scripts
 | |
| #
 | |
| 
 | |
| set -e
 | |
| set -o pipefail
 | |
| 
 | |
| 
 | |
| function browser() {
 | |
|     local url=$1
 | |
|     xdg-open $url || open $url
 | |
| }
 | |
| 
 | |
| 
 | |
| function find_remote() {
 | |
|     local url=$1
 | |
|     for remote in $(git remote); do
 | |
|         git config --get remote.${remote}.url | grep $url > /dev/null && echo -n $remote
 | |
|     done
 | |
|     # Always return true, extra remotes cause it to return false
 | |
|     true
 | |
| }
 |