fix winscp script: 第一次啟動winscp會判定如果這個資料夾已經存在,就不再複製執行檔,導致先跑過舊版此腳本後,winscp永遠不能執行

This commit is contained in:
Yuan Chiu 2025-04-25 09:22:32 +08:00
parent 58765beb6f
commit 83e6d92502

View File

@ -3,7 +3,7 @@
zsh -i -c 'zinit update'
vim +PlugInstall +qall
{{ if eq .chezmoi.os "linux" -}}
{{ if and (eq .chezmoi.os "linux") (not (stat (print .chezmoi.homeDir "/.winscp"))) -}}
{{ if or (eq .chezmoi.osRelease.id "manjaro") (eq .chezmoi.osRelease.id "arch") -}}
mkdir -p ~/.winscp
mkdir -p ~/.winscp/drive_c/users/{{ .chezmoi.username }}/.ssh