Skip to content

Instantly share code, notes, and snippets.

@strika
Created December 3, 2016 08:04
Show Gist options
  • Save strika/94bbb5c6a84a7abb59143b972ca8193b to your computer and use it in GitHub Desktop.
Save strika/94bbb5c6a84a7abb59143b972ca8193b to your computer and use it in GitHub Desktop.
Script for updating design files
#!/bin/bash
bundle exec sass-convert public/_mockups/default.css app/assets/stylesheets/default.scss
sed -i 's/url(..\/img\/\(.*\))/image-url("\1")/g' app/assets/stylesheets/default.scss
sed -i 's/url("..\/img\/\(.*\)")/image-url("\1")/g' app/assets/stylesheets/default.scss
sed -i "s/url('..\/img\/\(.*\)')/image-url(\"\1\")/g" app/assets/stylesheets/default.scss
sed -i "s/url('..\/fonts\/\([a-zA-Z0-9./?#_-]*\)')/font-url('\1')/ig" app/assets/stylesheets/default.scss
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment