Merge pull request #127 from JacobBarthelmeh/sftp

change check in external test script
pull/130/head
Chris Conlon 2018-12-12 12:42:27 -08:00 committed by GitHub
commit e313e66a1e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -39,7 +39,7 @@ echo -e "Success\n"
# not having the sftp client built in is not a failure case
./wolfsftp/client/wolfsftp -h
if [ $? == 0 ]; then
if [ $? -eq 0 ]; then
echo "Testing wolfsftp connection to $host : "
echo "exit" | ./wolfsftp/client/wolfsftp -u $user -P $password -h $host -p 22
RESULT=$?