Skip to main content
aboutsummaryrefslogblamecommitdiffstats
blob: 3e8282698cfaa98f3020ad3e136eba792d6951c1 (plain) (tree)
1
2
3
4
5
6
7
8
9
                   
 
                                                                     

                                                                       
 


                                        
                     
 


                                                       
          
 
                                                           
 
                              
      
                                   
          
  
#!/usr/bin/env bash

. git/org.eclipse.emf.cdo.releng.promotion/config/promoter.properties
compositionFolder=$DOWNLOADS_HOME/$projectPath/$compositionPath
compositionTempFolder=$DOWNLOADS_HOME/$projectPath/$compositionTempPath

if [ -d "$compositionTempFolder" ]
then
	tmpFolder=$compositionFolder.tmp
  rm -rf "$tmpFolder"

 	if [ -d "$compositionFolder" ]
  then
		mv -f "$compositionFolder" "$tmpFolder"
	fi

	mv -f "$compositionTempFolder" "$compositionFolder"

 	if [ -d "$tmpFolder" ]
  then
		rm -rf "$tmpFolder"
	fi
fi

Back to the top