Commit 09d9c607 authored by Alynna Trypnotk's avatar Alynna Trypnotk

Fix 'rsync confirmation' routine improper name for destination variable

parent ec5920c9
...@@ -215,8 +215,10 @@ echo ">>> Socket options: BLOCKSIZE=$BLOCKSIZE; BUFSIZE=$BUF; SPEEDLIMIT=$LIMI ...@@ -215,8 +215,10 @@ echo ">>> Socket options: BLOCKSIZE=$BLOCKSIZE; BUFSIZE=$BUF; SPEEDLIMIT=$LIMI
read -p ">>>>>> Press a key to continue, Ctrl-C to abort, or wait 5 seconds" -t 5 -n 1 read -p ">>>>>> Press a key to continue, Ctrl-C to abort, or wait 5 seconds" -t 5 -n 1
if [ "$PK" = "0" ] || [ "$PK" = "" ]; then if [ "$PK" = "0" ] || [ "$PK" = "" ]; then
echo "" if [ "$SSHPASS" = "" ]; then
read -s -p ">>> SSH Password authentication selected, please enter password: " SSHPASS echo ""
read -s -p ">>> SSH Password authentication selected, please enter password: " SSHPASS
fi
export SSHPASS export SSHPASS
echo "" echo ""
fi fi
...@@ -238,9 +240,9 @@ datapipe-local ...@@ -238,9 +240,9 @@ datapipe-local
if [ "$VERIFY" = "1" ]; then if [ "$VERIFY" = "1" ]; then
echo ">>> Begin transfer verification check ..." echo ">>> Begin transfer verification check ..."
if [ "$PK" = "0" ] || [ "$PK" = "" ]; then if [ "$PK" = "0" ] || [ "$PK" = "" ]; then
rsync -avu --progress --rsh="sshpass -e ssh" $SRC/ $USERHOST:$DEST/ rsync -avu --progress --rsh="sshpass -e ssh" $SRC/ $USERHOST:$DST/
else else
rsync -avu --progress --rsh=ssh $SRC/ $USERHOST:$DEST/ rsync -avu --progress --rsh=ssh $SRC/ $USERHOST:$DST/
fi fi
fi fi
finish-up finish-up
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment