cost of progress :(

This commit is contained in:
rusefi 2020-06-28 20:50:20 -04:00
parent e927b96efd
commit d3667177fa
1 changed files with 4 additions and 1 deletions

View File

@ -20,7 +20,10 @@ for f in *.ini; do if [[ -f "$f" ]]; then
echo "* found path: $path"
# unbeliveable, ncftpput does not work with special characters in password?!
# ncftpput -m -R -v -u "$1" -p "$2" "$3" $path $f
sshpass -p $2 sftp -o StrictHostKeyChecking=no $1@$3 <<< $'put $f'
# we do not have ssh for this user
# sftp does not support -p flag on mkdir :(
echo put $f > cmd
sshpass -p $2 sftp -o StrictHostKeyChecking=no $1@$3 <<< `cat cmd`
retVal=$?
if [ $retVal -ne 0 ]; then
echo "Upload failed"