File tree Expand file tree Collapse file tree 5 files changed +1715
-8
lines changed
Expand file tree Collapse file tree 5 files changed +1715
-8
lines changed Original file line number Diff line number Diff line change 1212
1313main () {
1414
15- DART_SASS_VERSION=1.89.2
15+
1616 HUGO_VERSION=0.148.0
1717
1818 export TZ=Europe/Oslo
1919
20- # Install Dart Sass
21- echo " Installing Dart Sass v${DART_SASS_VERSION} ..."
22- curl -LJO " https://github.com/sass/dart-sass/releases/download/${DART_SASS_VERSION} /dart-sass-${DART_SASS_VERSION} -linux-x64.tar.gz"
23- tar -xf " dart-sass-${DART_SASS_VERSION} -linux-x64.tar.gz"
24- cp -r dart-sass/ /opt/buildhome
25- rm -rf dart-sass*
26-
20+
2721 # Install Hugo
2822 echo " Installing Hugo v${HUGO_VERSION} ..."
2923 curl -LJO https://github.com/gohugoio/hugo/releases/download/v${HUGO_VERSION} /hugo_extended_${HUGO_VERSION} _linux-amd64.tar.gz
Original file line number Diff line number Diff line change 1+ #! /bin/sh
2+
3+ # This script drives the standalone dart-sass package, which bundles together a
4+ # Dart executable and a snapshot of dart-sass.
5+
6+ follow_links () {
7+ # Use `readlink -f` if it exists, but fall back to manually following symlnks
8+ # for systems (like older Mac OS) where it doesn't.
9+ file=" $1 "
10+ if readlink -f " $file " 2>& -; then return ; fi
11+
12+ while [ -h " $file " ]; do
13+ file=" $( readlink " $file " ) "
14+ done
15+ echo " $file "
16+ }
17+
18+ # Unlike $0, $BASH_SOURCE points to the absolute path of this file.
19+ path=` dirname " $( follow_links " $0 " ) " `
20+ exec " $path /src/dart" " $path /src/sass.snapshot" " $@ "
You can’t perform that action at this time.
0 commit comments