Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Meeting style requirements - variable, if statement

Removed extraneous Basepath.

Also forgot a comma.  Not required, but messy >.>
  • Loading branch information...
commit 281ed163b72b2d87d4fcbb822a6a0d560999cb9a 1 parent ee78754
Dylan Lacey authored
Showing with 4 additions and 1 deletion.
  1. +4 −1 lib/tasks/install.rake
View
5 lib/tasks/install.rake
@@ -11,7 +11,10 @@ namespace :bourbon do
FileUtils.mkdir_p "#{Rails.root}/#{args.sass_path}/bourbon"
FileUtils.cp_r "#{source_root}/app/assets/stylesheets/.", "#{Rails.root}/#{args.sass_path}/bourbon", {:preserve => true}
Find.find("#{Rails.root}/#{args.sass_path}/bourbon") do |path|
- FileUtils.mv(path path.gsub(".css.scss", "")<<".scss") if File.basename(path).end_with?(".css.scss")
+ if path.end_with?(".css.scss")
+ path_without_css_extention = path.gsub(".css.scss", "")<<".scss"
+ FileUtils.mv(path, path_without_css_extention)
+ end
end
end
end
Please sign in to comment.
Something went wrong with that request. Please try again.