mirror of
				https://github.com/edera-dev/krata.git
				synced 2025-11-04 07:39:39 +00:00 
			
		
		
		
	hack: rename scripts to hack
This commit is contained in:
		
							
								
								
									
										15
									
								
								hack/dist/version.sh
									
									
									
									
										vendored
									
									
										Executable file
									
								
							
							
						
						
									
										15
									
								
								hack/dist/version.sh
									
									
									
									
										vendored
									
									
										Executable file
									
								
							@ -0,0 +1,15 @@
 | 
			
		||||
#!/bin/sh
 | 
			
		||||
set -e
 | 
			
		||||
 | 
			
		||||
# shellcheck source-path=SCRIPTDIR source=common.sh
 | 
			
		||||
. "$(dirname "${0}")/common.sh"
 | 
			
		||||
cd "${KRATA_DIR}"
 | 
			
		||||
 | 
			
		||||
KRATA_VERSION="$(grep -A1 -F '[workspace.package]' Cargo.toml | grep 'version' | awk '{print $3}' | sed 's/"//g')"
 | 
			
		||||
if [ -z "${KRATA_VERSION}" ]
 | 
			
		||||
then
 | 
			
		||||
  echo "ERROR: failed to determine krata version" > /dev/stderr
 | 
			
		||||
  exit 1
 | 
			
		||||
fi
 | 
			
		||||
 | 
			
		||||
echo "${KRATA_VERSION}"
 | 
			
		||||
		Reference in New Issue
	
	Block a user