cost of progress :(

This commit is contained in:
rusefi 2020-06-28 20:29:28 -04:00
parent d9cc5ad453
commit a0a0ee3514
1 changed files with 3 additions and 1 deletions

View File

@ -18,7 +18,9 @@ for f in *.ini; do if [[ -f "$f" ]]; then
sig="${sig//\./\/}.ini" sig="${sig//\./\/}.ini"
path="/rusefi/$sig" path="/rusefi/$sig"
echo "* found path: $path" echo "* found path: $path"
ncftpput -m -R -v -u "$1" -p "$2" "$3" $path $f # 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 rusefi.ini'
retVal=$? retVal=$?
if [ $retVal -ne 0 ]; then if [ $retVal -ne 0 ]; then
echo "Upload failed" echo "Upload failed"