snap: Fix dart-sass-embedded installation

Closes #10783
This commit is contained in:
Joe Mooring 2023-03-03 17:13:49 -08:00 committed by Bjørn Erik Pedersen
parent 36ce3a4a9d
commit a950950f1b

View file

@ -152,9 +152,9 @@ parts:
if [[ -n $arch ]]; then
url=$(curl -s https://api.github.com/repos/sass/dart-sass-embedded/releases/latest | awk -F\" "/browser_download_url.*-linux-${arch}.tar.gz/{print \$(NF-1)}")
curl -LO --retry-connrefused --retry 10 "$url"
tar xf sass_embedded-*-linux-$arch.tar.gz sass_embedded/dart-sass-embedded
tar xf sass_embedded-*-linux-$arch.tar.gz
install -d $SNAPCRAFT_PART_INSTALL/bin
cp -av sass_embedded/dart-sass-embedded $SNAPCRAFT_PART_INSTALL/bin/
cp -av sass_embedded/* $SNAPCRAFT_PART_INSTALL/bin/
fi
node: