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
# script by github.com/jnaklaas | |
# base script by github.com/dunckr: https://gist.github.com/dunckr/1e149d5decf1f02e4fb9 | |
LESS_PATH=${1:-"./"} | |
SASS_PATH=${2:-$LESS_PATH} | |
mkdir -p $SASS_PATH | |
for filename in $LESS_PATH*.less; do | |
DESTINATION=$SASS_PATH"_`basename $filename .less`.scss" | |
echo "less2sass $filename to $DESTINATION" | |
less2sass "${filename}" $DESTINATION; |