mirror of
				https://gitea.com/gitea/act_runner.git
				synced 2025-10-31 04:47:58 +01:00 
			
		
		
		
	checksum and compress
This commit is contained in:
		
							
								
								
									
										12
									
								
								.goreleaser.checksum.sh
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										12
									
								
								.goreleaser.checksum.sh
									
									
									
									
									
										Normal file
									
								
							| @@ -0,0 +1,12 @@ | ||||
| #!/bin/bash | ||||
|  | ||||
| set -e | ||||
|  | ||||
| if [ -z "$1" ]; then | ||||
|   echo "usage: $0 <path>" | ||||
|   exit 1 | ||||
| fi | ||||
|  | ||||
| SUM=$(shasum -a 256 "$1" | cut -d' ' -f1) | ||||
| BASENAME=$(basename "$1") | ||||
| echo -n "${SUM}  ${BASENAME}" > "$1".sha256 | ||||
		Reference in New Issue
	
	Block a user