diff --git a/fabric-ca/scripts/file_exits.sh b/fabric-ca/scripts/file_exits.sh index 7cc5bd2..0ed2d77 100644 --- a/fabric-ca/scripts/file_exits.sh +++ b/fabric-ca/scripts/file_exits.sh @@ -21,7 +21,7 @@ set remote_file [lindex $argv 3] ;# 远程服务器文件 set passwd_error 0 -spawn ssh ${remote_user}@${remote_host} "test -f ${remote_file} && echo 'File exists' || echo 'File Not exists'" +spawn ssh ${remote_user}@${remote_host} "test -e ${remote_file} && echo 'File exists' || echo 'File Not exists'" expect {