david/sshbackup
david
/
sshbackup
Archived
1
0
Fork 0

fixes minor bug

This commit is contained in:
david 2013-04-28 17:02:16 +02:00
parent a86affaf11
commit 9e5796c5dd
1 changed files with 6 additions and 6 deletions

View File

@ -206,11 +206,11 @@ for option in $options; do
else
if [ -z "$sourcepath" ]; then
if [[ $option =~ .*@.* ]]; then
sourcepath="${option%/}/"
sourcepath="${option%/}/*"
elif [[ $option =~ ^/.* ]]; then
sourcepath="${option%/}/"
sourcepath="${option%/}/*"
else
sourcepath="$(pwd)/${option%/}/"
sourcepath="$(pwd)/${option%/}/*"
fi
else
if [ -z "$destinationpath" ]; then
@ -251,11 +251,11 @@ if [ -r "$listfile" ]; then
else
if [ -z "$sourcepath" ]; then
if [[ $option =~ .*@.* ]]; then
sourcepath="${option%/}/"
sourcepath="${option%/}/*"
elif [[ $option =~ ^/.* ]]; then
sourcepath="${option%/}/"
sourcepath="${option%/}/*"
else
sourcepath="$(pwd)/${option%/}/"
sourcepath="$(pwd)/${option%/}/*"
fi
else
if [ -z "$destinationpath" ]; then