Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions dropbox_uploader.sh
Original file line number Diff line number Diff line change
Expand Up @@ -818,15 +818,15 @@ function db_download

#It's a file
elif [[ $TYPE == "FILE" ]]; then

basedir=$(basename "$SRC")
#Checking DST
if [[ $DST == "" ]]; then
DST=$(basename "$SRC")
DST=$basedir
fi

#If the destination is a directory, the file will be download into
if [[ -d $DST ]]; then
DST="$DST/$SRC"
DST="$DST/$basedir"
fi

db_download_file "$SRC" "$DST"
Expand Down