mirror of https://github.com/dapr/cli.git
				
				
				
			Remove old Dapr CLI to avoid file corruption (#885)
Signed-off-by: Bernd Verst <4535280+berndverst@users.noreply.github.com>
This commit is contained in:
		
							parent
							
								
									68c2ab84d4
								
							
						
					
					
						commit
						6a7cdfd407
					
				| 
						 | 
				
			
			@ -176,6 +176,9 @@ installFile() {
 | 
			
		|||
        exit 1
 | 
			
		||||
    fi
 | 
			
		||||
 | 
			
		||||
    if [ -f "$DAPR_CLI_FILE" ]; then
 | 
			
		||||
        runAsRoot rm "$DAPR_CLI_FILE"
 | 
			
		||||
    fi
 | 
			
		||||
    chmod o+x $tmp_root_dapr_cli
 | 
			
		||||
    runAsRoot cp "$tmp_root_dapr_cli" "$DAPR_INSTALL_DIR"
 | 
			
		||||
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
		Reference in New Issue