diff options
author | Dominic Reich <dominic@noreply.oe7drt.com> | 2023-12-08 20:49:24 +0300 |
---|---|---|
committer | Dominic Reich <dominic@noreply.oe7drt.com> | 2023-12-08 20:49:24 +0300 |
commit | 44f754d711c108dbbbfc2e0612961cd44afb71ea (patch) | |
tree | 536e1f5fd391c6c2bf9b06fe4349fc8e2ca29936 | |
parent | 47b0187a675afed6b49007fe1915b2c0fe94b7bc (diff) |
use "rm" instead of "unlink" to delete old config file
-rw-r--r-- | internal/wizard.zsh | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/internal/wizard.zsh b/internal/wizard.zsh index b87f0dfc..9dd48e42 100644 --- a/internal/wizard.zsh +++ b/internal/wizard.zsh @@ -1950,7 +1950,7 @@ function generate_config() { command mkdir -p -- ${__p9k_cfg_path:h} || return if [[ -e $__p9k_cfg_path ]]; then - unlink $__p9k_cfg_path || return + rm $__p9k_cfg_path || return fi print -lr -- "$header" "$lines[@]" >$__p9k_cfg_path } |