Skip to content

Instantly share code, notes, and snippets.

@mariorez
Last active August 29, 2015 14:04
Show Gist options
  • Save mariorez/5faeafac379916c9cdc2 to your computer and use it in GitHub Desktop.
Save mariorez/5faeafac379916c9cdc2 to your computer and use it in GitHub Desktop.
#!/bin/bash
finishMessage="\033[37;40m Prepare ASSETS was completed! \033[0m\n"
# COMPASS COMPILE
echo "\033[37;40m Run COMPASS:COMPILE (y|n)?: n\033[0m"
read compile
compile=${compile:-n}
if [ "$compile" == "y" ]
then
echo "\033[37;40m Runing SASS COMPILE ... \033[0m"
compassPath="path/to/css"
cd $compassPath
compass compile sass/main.sass
fi
# COMPRESS ASSETS
echo "\033[37;40m Combine and Minify ASSETS (y|n)?: n\033[0m"
read compress
compress=${compress:-n}
if [ "$compress" == "y" ]
then
echo -e "\033[37;40m Minifying ASSETS ... \033[0m"
compressPath="/path/to/compress"
cd $compressPath
php deploy.php
fi
# FINISH
echo $finishMessage
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment