Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Remove existing cached file before overwrite
The permission for the cache file is set to `0500` by default and when we try to overwrite this file without removing the current file it failed with following error because the `CopyFileContents` open the file with `os.O_RDWR` and since the file doesn't have write permission thus the error. ``` Unable to download oc [open /home/prkumar/.crc/bin/oc/oc: permission denied] Cannot create dst file '/home/prkumar/.crc/bin/oc/oc' ```
- Loading branch information