24 lines
403 B
Bash
24 lines
403 B
Bash
|
#!/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;
|