Last active
August 29, 2015 14:04
-
-
Save mariorez/5faeafac379916c9cdc2 to your computer and use it in GitHub Desktop.
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 | |
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