Skip to content

Commit

Permalink
Fix directory not exits error
Browse files Browse the repository at this point in the history
  • Loading branch information
Trekkiii committed May 25, 2018
1 parent 46b361d commit 8520731
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion fabric-ca/scripts/file_exits.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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 {

Expand Down

0 comments on commit 8520731

Please sign in to comment.