File: parse-sass.sh

package info (click to toggle)
materia-gtk-theme 20200916-0.2
  • links: PTS, VCS
  • area: main
  • in suites: bullseye
  • size: 4,096 kB
  • sloc: xml: 2,005; sh: 772; makefile: 2
file content (14 lines) | stat: -rwxr-xr-x 377 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
#!/bin/bash
set -ueo pipefail

if [[ ! "$(command -v sassc)" ]]; then
  echo "'sassc' needs to be installed to generate the CSS."
  exit 1
fi

SASSC_OPT=('-M' '-t' 'expanded')

echo "Generating the chrome-scrollbar CSS..."

sassc "${SASSC_OPT[@]}" src/chrome/chrome-scrollbar/scrollbars.{scss,css}
sassc "${SASSC_OPT[@]}" src/chrome/chrome-scrollbar-dark/scrollbars.{scss,css}