lib/helpers/helpers.rb in shagit-0.3.0 vs lib/helpers/helpers.rb in shagit-0.3.1

- old
+ new

@@ -95,11 +95,13 @@ config_data = ConfigInfo.instance # check if the bin folder is included in the directory this file is located in if current_working_directory.include?('bin') if (config_data.working_dir == '.') + # extract source installation directory of the gem + gem_installation_dir = File.dirname(__FILE__).split('bin')[0] puts "FATAL ERROR: The directory for saving repositories cannot be used!" - puts "Please set the path in your config.yml accordingly." + puts "Please set the path in your #{gem_installation_dir}config.yml accordingly." exit end # if so, we know Shagit has been installed via gem and the application's root folder has to be redirected set :root, current_working_directory \ No newline at end of file