This repository has been archived on 2024-04-19. You can view files and clone it, but cannot push or open issues or pull requests.
crispage-lite/build.sh

24 lines
403 B
Bash
Raw Normal View History

2023-12-07 14:07:15 -05:00
#!/bin/bash
rm -rf build;
if [[ -d cache ]]; then
cp -r cache build;
else
git clone https://git.calitabby.com/crispage/crispage.git build;
cp -r build cache;
fi;
while IFS= read -r line; do
if [[ "$line" != "" ]]; then
rm -rf build/"$line";
fi;
done < delete.list;
cp -r patch/* build;
read -p "Copy build folder? [y/n]" copy
if [[ "$copy" = "y" ]]; then
rm -rf lite;
cp -r build lite;
fi;