Last Updated: November 26, 2016
· ccurtisj

Script to rename all deprecated .css.sass files to .sass

If you follow Rails tradition and name your SASS files foo.css.sass, you may have noticed some deprecation warnings on compilation after upgrading sass-rails.

The extra .css has been deprecated and won't be supported in future versions of Sprockets.

Random? Maybe. Worth crying about? Nah. Here's a bash script to handle the otherwise painful rename.

for file in $(find ./app/assets/stylesheets/ -name "*.css.sass")
    git mv $file `echo $file | sed s/\.css//`

shared via