Skip to content

Instantly share code, notes, and snippets.

@barbagrigia
Forked from kevin-smets/gitConvertSassToScss.sh
Created September 21, 2017 23:41
Show Gist options
  • Save barbagrigia/a956fad153629a9f479c46acc82369de to your computer and use it in GitHub Desktop.
Save barbagrigia/a956fad153629a9f479c46acc82369de to your computer and use it in GitHub Desktop.
Converts all sass files (recursively) to scss in a git repo (rename should get picked up so history is still tied to the converted file).
find . -type f -name "*.sass" -exec bash -c 'sass-convert ${0} -i --to scss; git mv ${0} ${0%.sass}.scss' {} \;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment