fix winscp script: 邏輯搞反了,要有該資料夾才會執行動作

This commit is contained in:
Yuan Chiu 2025-04-25 09:52:48 +08:00
parent d9ac5a422b
commit 88e357bc86

View File

@ -3,7 +3,7 @@
zsh -i -c 'zinit update'
vim +PlugInstall +qall
{{ if and (eq .chezmoi.os "linux") (not (stat (print .chezmoi.homeDir "/.winscp"))) }}
{{ if and (eq .chezmoi.os "linux") (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