From 8520731870fc27d1fd072856d37dbf9d83fff69f Mon Sep 17 00:00:00 2001 From: liuchunlong <631521383@qq.com> Date: Fri, 25 May 2018 10:13:20 +0800 Subject: [PATCH] Fix directory not exits error --- fabric-ca/scripts/file_exits.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 {