From 3e0d1b9909be690ab23093b00efd109fc76c4e25 Mon Sep 17 00:00:00 2001 From: liby Date: Thu, 28 May 2020 13:13:41 +0800 Subject: [PATCH] Use the `>|` operator that conforms to the POSIX standard to overwrite the file without prompting. --- autoupdate.plugin.zsh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/autoupdate.plugin.zsh b/autoupdate.plugin.zsh index a7eed49..afa6ac2 100644 --- a/autoupdate.plugin.zsh +++ b/autoupdate.plugin.zsh @@ -22,7 +22,7 @@ function _current_epoch() { } function _update_zsh_custom_update() { - echo "LAST_EPOCH=$(_current_epoch)" >! "${ZSH_CACHE_DIR}/.zsh-custom-update" + echo "LAST_EPOCH=$(_current_epoch)" >| "${ZSH_CACHE_DIR}/.zsh-custom-update" } epoch_target=$UPDATE_ZSH_DAYS