37 lines
814 B
Bash
37 lines
814 B
Bash
|
|
#!/usr/bin/env sh
|
||
|
|
|
||
|
|
CURDIR=$(dirname "$0")
|
||
|
|
PUBLIC=$(realpath "$CURDIR"/public)
|
||
|
|
|
||
|
|
BS_VERSION=5.3.0-alpha3
|
||
|
|
BS_URL=https://github.com/twbs/bootstrap/releases/download/v${BS_VERSION}/bootstrap-${BS_VERSION}-dist.zip
|
||
|
|
|
||
|
|
if [ ! -d "$PUBLIC/bootstrap" ]; then
|
||
|
|
cd "$PUBLIC" || {
|
||
|
|
echo "Can't cd to public ($PUBLIC)"
|
||
|
|
exit 1
|
||
|
|
}
|
||
|
|
|
||
|
|
wget "$BS_URL"
|
||
|
|
bs_name=bootstrap-$BS_VERSION-dist
|
||
|
|
unzip $bs_name.zip
|
||
|
|
rm $bs_name.zip
|
||
|
|
mv $bs_name bootstrap
|
||
|
|
fi
|
||
|
|
|
||
|
|
BS_I_VERSION=1.10.5
|
||
|
|
BS_I_URL=https://github.com/twbs/icons/releases/download/v${BS_I_VERSION}/bootstrap-icons-${BS_I_VERSION}.zip
|
||
|
|
|
||
|
|
if [ ! -d "$PUBLIC/bootstrap-icons" ]; then
|
||
|
|
cd "$PUBLIC" || {
|
||
|
|
echo "Can't cd to public ($PUBLIC)"
|
||
|
|
exit 1
|
||
|
|
}
|
||
|
|
|
||
|
|
wget "$BS_I_URL"
|
||
|
|
bs_i_name=bootstrap-icons-$BS_I_VERSION
|
||
|
|
unzip $bs_i_name.zip
|
||
|
|
rm $bs_i_name.zip
|
||
|
|
mv $bs_i_name bootstrap-icons
|
||
|
|
fi
|