change check in external test script

pull/127/head
Jacob Barthelmeh 2018-12-11 17:31:37 -07:00
parent 3994d0f538
commit 7b5ec6924f
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=$?