lib/sifttter_redux/dbu.rb in sifttter-redux-0.4.2 vs lib/sifttter_redux/dbu.rb in sifttter-redux-0.4.3
- old
+ new
@@ -38,11 +38,11 @@
# local filesystem.
# @return Void
# ----------------------------------------------------
def self.install_wizard(already_initialized = false)
CLIMessage::section_block('CONFIGURING DROPBOX UPLOADER...') do
- # Prompt the user for a location to save Dropbox Uploader. '
- path = CLIMessage::prompt('Location for Dropbox-Uploader', already_initialized ? Configuration['db_uploader']['base_filepath'] : DBU_LOCAL_FILEPATH)
+ # Prompt the user for a location to save Dropbox Uploader.
+ path = CLIMessage::prompt('Location for Dropbox-Uploader', already_initialized && !Configuration['db_uploader']['base_filepath'].nil? ? Configuration['db_uploader']['base_filepath'] : DBU_LOCAL_FILEPATH)
path.chop! if path.end_with?('/')
# If the entered directory exists, clone the repository.
if File.directory?(path)
dbu_path = File.join(path, 'Dropbox-Uploader')