|
|
| Welcome to the Mac Forums forums. Please read the FAQ if you have questions. Register to participate. |
|
|||||||
| TouchArcade.com - iPhone Game Reviews and News |
![]() |
|
|
Thread Tools | Search this Thread | Display Modes |
|
|
#1 |
|
macrumors newbie
Join Date: Apr 2008
|
Simple bash/automator question
I am setting up a script which minifies and concatenates a bunch of css/js files.
So in my script i have this: csslist=`find $1 -type f -name \*.css -a \! -name \*.min.css` for cfile in $csslist do cfilemini="${cfile%.css}.min.css" echo "Minifying $cfile..." java -jar $YUICOMPRESSOR --type css $ARGS $cfile -o $cfilemini cat $cfilemini >> compressed.css done but the cat $cfilemini >> compressed.css doesn't work. Are you allowed redirection in this type of script? It's just bash ... thanks! |
|
|
|
|
|
#2 |
|
Thread Starter
macrumors newbie
Join Date: Apr 2008
|
just to be clear, this works when saved as a bash script, but doesnt work as an automator app/script.
|
|
|
|
|
|
#3 | |
|
macrumors 6502a
Join Date: Aug 2009
|
Quote:
As a test, run your shell script using a pathname that contains embedded spaces. You might also describe exactly what happens when it doesn't work. Post any error messages, unexpected files, missing files, etc. |
|
|
|
|
![]() |
| Thread Tools | Search this Thread |
| Display Modes | |
|
|