fix spelling mistake and change check for sftp client

pull/81/head
Jacob Barthelmeh 2018-07-02 17:19:43 -06:00
parent 73bcd5c95a
commit a1e2cde485
1 changed files with 4 additions and 3 deletions

View File

@ -6,9 +6,9 @@ user="demo"
password="password"
if test -n "$WOLFSSH_EXTERNAL_TEST"; then
echo "WOLFSSL_EXTERNAH_TEST set, running test..."
echo "WOLFSSH_EXTERNAL_TEST set, running test..."
else
echo "WOLFSSL_EXTERNAH_TEST NOT set, won't run"
echo "WOLFSSH_EXTERNAL_TEST NOT set, won't run"
exit 0
fi
@ -38,7 +38,8 @@ echo -e "Success\n"
# not having the sftp client built in is not a failure case
if [ -x ./wolfsftp/client/wolfsftp ]; then
./wolfsftp/client/wolfsftp -h
if [ $? == 0 ]; then
echo "Testing wolfsftp connection to $host : "
echo "exit" | ./wolfsftp/client/wolfsftp -u $user -P $password -h $host -p 22
RESULT=$?