mirror of
https://github.com/romkatv/powerlevel10k.git
synced 2024-12-28 09:31:56 +00:00
use "rm" instead of "unlink" to delete old config file
This commit is contained in:
parent
47b0187a67
commit
44f754d711
1 changed files with 1 additions and 1 deletions
|
@ -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
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue