Files
wordpress-preseed/wp-content/plugins/all-in-one-event-calendar/public/admin/less/build-css.sh
Adrian Nöthlich 290736650a Add upstream plugins
Signed-off-by: Adrian Nöthlich <git@promasu.tech>
2019-10-25 22:42:20 +02:00

20 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