all-in-one-event-calendar/public/admin/less/build-css.sh
2017-03-16 16:59:53 +01:00

19 lines
424 B
Bash
Executable file

#!/bin/bash
LESSC="lessc --no-color --yui-compress --include-path=."
which lessc >/dev/null
if [[ $? -eq 0 ]]
then
$LESSC timely-bootstrap.less > ../css/bootstrap.min.css
errcode=$?
if [[ $errcode -ne 0 ]]; then
echo 'Error during compilation. Please ensure you have less >= 1.7.0 installed.'
fi
exit $errcode
else
echo 'Error: lessc not found.'
echo 'Install Node.js then: npm install -g less'
exit 1;
fi