added download theme assets script

This commit is contained in:
2024-03-28 18:12:57 +03:00
parent 4823924e3c
commit 1fa39a180f
3 changed files with 78 additions and 0 deletions

15
scripts/update-static.sh Executable file
View File

@ -0,0 +1,15 @@
#!/bin/bash
# include colors.sh
SCRIPT=$(readlink -f $0)
SCRIPTPATH=`dirname $SCRIPT`
source $SCRIPTPATH/colors.sh
CDN_PATH=https://cdn.a2s.su/blog/assets/bootstrap/5.3.3
echo -e "${BRIGHT_CYAN}Download ${BRIGHT_CYAN_B}Bootstrap...${NC}"
wget -nv "$CDN_PATH/bootstrap.min.css" -O themes/papercut/static/css/bootstrap.min.css
wget -nv "$CDN_PATH/bootstrap.min.js" -O themes/papercut/static/js/bootstrap.min.js
echo -e "${BRIGHT_GREEN}Complete...${NC}"