Skip to content

Commit 11bbf5a

Browse files
author
marci
committed
update bash.sh
1 parent 2838642 commit 11bbf5a

File tree

5 files changed

+1715
-8
lines changed

5 files changed

+1715
-8
lines changed

build.sh

100644100755
Lines changed: 2 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -12,18 +12,12 @@
1212

1313
main() {
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

dart-sass/sass

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
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" "$@"

0 commit comments

Comments
 (0)