mirror of
				https://github.com/yeslayla/build-godot-action.git
				synced 2025-11-04 16:23:04 +01:00 
			
		
		
		
	Make action not fail if dirs exist
This commit is contained in:
		@ -2,7 +2,7 @@
 | 
				
			|||||||
set -e
 | 
					set -e
 | 
				
			||||||
 | 
					
 | 
				
			||||||
# Move godot templates already installed from the docker image to home
 | 
					# Move godot templates already installed from the docker image to home
 | 
				
			||||||
mv /root/.local ~
 | 
					mv -n /root/.local ~
 | 
				
			||||||
 | 
					
 | 
				
			||||||
if [ "$3" != "" ]
 | 
					if [ "$3" != "" ]
 | 
				
			||||||
then
 | 
					then
 | 
				
			||||||
@ -27,7 +27,7 @@ echo ::set-output name=build::~/build/${SubDirectoryLocation:-""}
 | 
				
			|||||||
 | 
					
 | 
				
			||||||
if [ "$4" = "true" ]
 | 
					if [ "$4" = "true" ]
 | 
				
			||||||
then
 | 
					then
 | 
				
			||||||
    mkdir ~/package
 | 
					    mkdir -p ~/package
 | 
				
			||||||
    cd ~/build
 | 
					    cd ~/build
 | 
				
			||||||
    zip ~/package/artifact.zip ${SubDirectoryLocation:-"."} -r
 | 
					    zip ~/package/artifact.zip ${SubDirectoryLocation:-"."} -r
 | 
				
			||||||
    echo ::set-output name=artifact::~/package/artifact.zip
 | 
					    echo ::set-output name=artifact::~/package/artifact.zip
 | 
				
			||||||
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user