mirror of
				https://github.com/zokradonh/kopano-docker
				synced 2025-10-31 10:27:14 +00:00 
			
		
		
		
	shellcheck fixes
Signed-off-by: Felix Bartels <felix@host-consultants.de>
This commit is contained in:
		
							parent
							
								
									e6f290e85f
								
							
						
					
					
						commit
						679249a1ac
					
				
							
								
								
									
										10
									
								
								version.sh
									
									
									
									
									
								
							
							
						
						
									
										10
									
								
								version.sh
									
									
									
									
									
								
							| @ -7,7 +7,7 @@ fi | |||||||
| source base/create-kopano-repo.sh | source base/create-kopano-repo.sh | ||||||
| 
 | 
 | ||||||
| component=${1:-core} | component=${1:-core} | ||||||
| COMPONENT=$(echo $component | tr a-z A-Z) | COMPONENT=$(echo "$component" | tr a-z A-Z) | ||||||
| 
 | 
 | ||||||
| if [ -e ./env ]; then | if [ -e ./env ]; then | ||||||
| 	source ./env | 	source ./env | ||||||
| @ -17,7 +17,7 @@ case $component in | |||||||
| core) | core) | ||||||
| 	KOPANO_CORE_REPOSITORY_URL=${KOPANO_CORE_REPOSITORY_URL:-""} | 	KOPANO_CORE_REPOSITORY_URL=${KOPANO_CORE_REPOSITORY_URL:-""} | ||||||
| 	if [[ $KOPANO_CORE_REPOSITORY_URL == http* ]]; then | 	if [[ $KOPANO_CORE_REPOSITORY_URL == http* ]]; then | ||||||
| 		version=$(curl -s -S -L $KOPANO_CORE_REPOSITORY_URL/Packages | grep -A2 "Package: kopano-server-packages") | 		version=$(curl -s -S -L "$KOPANO_CORE_REPOSITORY_URL"/Packages | grep -A2 "Package: kopano-server-packages") | ||||||
| 		echo "${version##* }" | 		echo "${version##* }" | ||||||
| 		exit | 		exit | ||||||
| 	fi | 	fi | ||||||
| @ -25,7 +25,7 @@ core) | |||||||
| webapp) | webapp) | ||||||
| 	KOPANO_WEBAPP_REPOSITORY_URL=${KOPANO_WEBAPP_REPOSITORY_URL:-""} | 	KOPANO_WEBAPP_REPOSITORY_URL=${KOPANO_WEBAPP_REPOSITORY_URL:-""} | ||||||
| 	if [[ $KOPANO_WEBAPP_REPOSITORY_URL == http* ]]; then | 	if [[ $KOPANO_WEBAPP_REPOSITORY_URL == http* ]]; then | ||||||
| 		version=$(curl -s -S -L $KOPANO_WEBAPP_REPOSITORY_URL/Packages | grep -m1 -A1 "Package: kopano-webapp") | 		version=$(curl -s -S -L "$KOPANO_WEBAPP_REPOSITORY_URL"/Packages | grep -m1 -A1 "Package: kopano-webapp") | ||||||
| 		echo "${version##* }" | 		echo "${version##* }" | ||||||
| 		exit | 		exit | ||||||
| 	fi | 	fi | ||||||
| @ -33,7 +33,7 @@ webapp) | |||||||
| zpush) | zpush) | ||||||
| 	KOPANO_ZPUSH_REPOSITORY_URL=${KOPANO_ZPUSH_REPOSITORY_URL:-"http://repo.z-hub.io/z-push:/final/Debian_9.0/"} | 	KOPANO_ZPUSH_REPOSITORY_URL=${KOPANO_ZPUSH_REPOSITORY_URL:-"http://repo.z-hub.io/z-push:/final/Debian_9.0/"} | ||||||
| 	if [[ $KOPANO_ZPUSH_REPOSITORY_URL == http* ]]; then | 	if [[ $KOPANO_ZPUSH_REPOSITORY_URL == http* ]]; then | ||||||
| 		version=$(curl -s -S -L $KOPANO_ZPUSH_REPOSITORY_URL/Packages | grep -m2 -A2 "Package: z-push-kopano") | 		version=$(curl -s -S -L "$KOPANO_ZPUSH_REPOSITORY_URL"/Packages | grep -m2 -A2 "Package: z-push-kopano") | ||||||
| 		echo "${version##* }" | 		echo "${version##* }" | ||||||
| 		exit | 		exit | ||||||
| 	fi | 	fi | ||||||
| @ -45,4 +45,4 @@ filename=$(h5ai_query "$component") | |||||||
| 
 | 
 | ||||||
| currentVersion=$(version_from_filename "$filename") | currentVersion=$(version_from_filename "$filename") | ||||||
| 
 | 
 | ||||||
| echo $currentVersion | echo "$currentVersion" | ||||||
|  | |||||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user