Created
December 3, 2016 08:04
-
-
Save strika/94bbb5c6a84a7abb59143b972ca8193b to your computer and use it in GitHub Desktop.
Script for updating design files
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/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