fix: On Mac it's not allowed to redirect output to an existing file
* On Mac it's not allowed to redirect output to an existing file
bash: [~]/.cache/dfinity/uninstall.sh: cannot overwrite existing file
@@ -252,7 +252,7 @@ EOF
assert_nz "${HOME}"
uninstall_file_path="${HOME}/.cache/dfinity/uninstall.sh"
log "uninstall path=${uninstall_file_path}"
- touch "${uninstall_file_path}"
+ rm -f "${uninstall_file_path}"
printf "%s" "$uninstall_script" >"${uninstall_file_path}"
ensure chmod u+x "${uninstall_file_path}"
}
