3 function __init_sass() {
13 pkg_dst_cmd="$HOME/.local/bin/sass"
14 pkg_dst="$pkg_dst_cmd"
16 # no ./bin dir here because of how the macOS version is packaged
17 pkg_src_cmd="$HOME/.local/opt/dart-sass-v$WEBI_VERSION/sass"
18 pkg_src_dir="$HOME/.local/opt/dart-sass-v$WEBI_VERSION"
19 pkg_src="$pkg_src_cmd"
21 # pkg_install must be defined by every package
23 # moves everything, for macOS' sake
24 mkdir -p "$pkg_src_dir"
25 mv ./dart-sass/* "$pkg_src_dir"
28 pkg_get_current_version() {
29 echo $(sass --version 2> /dev/null | head -n 1 | cut -d ' ' -f 2)