fix upload when dest not specified

bug/bundler_fix
Rich Whitcroft 2017-02-14 22:08:49 -05:00
parent 082ebe23db
commit 24a4211bb9
1 changed files with 5 additions and 1 deletions

View File

@ -756,7 +756,11 @@ class Console::CommandDispatcher::Stdapi::Fs
# Source and destination will be the same
src_items << last if src_items.empty?
if args.size == 1
dest = last.split(/(\/|\\)/).last
else
dest = last
end
# Go through each source item and upload them
src_items.each { |src|