stupid, STUPID escaping mistake. D'OH!
This commit is contained in:
		
							parent
							
								
									1608a354cf
								
							
						
					
					
						commit
						3b0868c61e
					
				
					 1 changed files with 3 additions and 9 deletions
				
			
		
							
								
								
									
										12
									
								
								deploy.sh
									
										
									
									
									
								
							
							
						
						
									
										12
									
								
								deploy.sh
									
										
									
									
									
								
							|  | @ -5,7 +5,7 @@ function die() { | ||||||
|     exit 1 |     exit 1 | ||||||
| } | } | ||||||
| 
 | 
 | ||||||
| }declare destination | declare destination | ||||||
| case "${TARGET}" in | case "${TARGET}" in | ||||||
| 	"${WWW_DEPLOY_ROOT_DEVELOP}") | 	"${WWW_DEPLOY_ROOT_DEVELOP}") | ||||||
| 		destination="${TARGET}/${CI_BUILD_REF_NAME}" | 		destination="${TARGET}/${CI_BUILD_REF_NAME}" | ||||||
|  | @ -22,14 +22,8 @@ if [[ ! -d "${destination}" ]] ; then | ||||||
|     mkdir -p "${destination}" || die "Failed to create target directory for deployment!" |     mkdir -p "${destination}" || die "Failed to create target directory for deployment!" | ||||||
| fi | fi | ||||||
| 
 | 
 | ||||||
| echo "Before any deletion:" | rm -rf "${destination}"/* || die "Failed to clean destination directory (step 1)" | ||||||
| ls "${destination}" | rm -rf "${destination}"/.??* || die "Failed to clean destination directory (step 2)" | ||||||
| rm -rf "${destination}/*" || die "Failed to clean destination directory (step 1)" |  | ||||||
| echo "After rm -rf dest/*:" |  | ||||||
| ls "${destination}" |  | ||||||
| rm -rf "${destination}/.??*" || die "Failed to clean destination directory (step 2)" |  | ||||||
| echo "After rm -rf dest/.??:" |  | ||||||
| ls "${destination}" |  | ||||||
| 
 | 
 | ||||||
| cp -a dencode.css index.html package.json systemjs.config.js "${destination}" || die "Failed to copy resources to dest/" | cp -a dencode.css index.html package.json systemjs.config.js "${destination}" || die "Failed to copy resources to dest/" | ||||||
| 
 | 
 | ||||||
|  |  | ||||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue