regalade/app/dl_bootstrap.sh

18 lines
452 B
Bash
Raw Normal View History

2023-05-20 16:53:07 +02:00
#!/usr/bin/env bash
VERSION=5.3.0-alpha3
URL=https://github.com/twbs/bootstrap/releases/download/v${VERSION}/bootstrap-${VERSION}-dist.zip
if [[ ! -d "$TRUNK_DIST_DIR/bootstrap" ]]; then
2023-05-28 19:47:05 +02:00
cd "$TRUNK_STAGING_DIR" || {
echo "Can't cd to staging directory"
exit 1
}
wget "$URL"
unzip bootstrap-$VERSION-dist.zip
rm bootstrap-$VERSION-dist.zip
mv bootstrap-$VERSION-dist bootstrap
2023-05-20 16:53:07 +02:00
else
2023-05-28 19:47:05 +02:00
cp -r "$TRUNK_DIST_DIR/bootstrap" "$TRUNK_STAGING_DIR"
2023-05-20 16:53:07 +02:00
fi