I want to minify multiple CSS files automatically with "uglifycss" in a bash script (from here How to minify Javascript and CSS with command-line using minify tool?)
#minification of CSS files
find ./newcss -type f \
-name "*.css" ! -name "*.min.*" \
-exec echo {} \; \
-exec uglifycss --output {}.min.css {} \; \
-exec rm {} \; \
-exec mv {}.min.css {} \;
The files are in /newcss, the script is one folder above that, in /newcss are multiple .css files but the script says
newcss/glowcookies.css
find: ‘uglifycss’: No such file or directory
although there is a glowcookies.css in /newcss. What am I doing wrong here?