mirror of
https://github.com/SukkaW/Surge.git
synced 2026-01-29 01:51:52 +08:00
Docs: fix README Clash usage
This commit is contained in:
@@ -21,19 +21,17 @@ const downloadPreviousBuild = task(__filename, async () => {
|
||||
|
||||
let allFileExists = true;
|
||||
|
||||
if (isCI) {
|
||||
allFileExists = false;
|
||||
} else {
|
||||
for await (const line of readFileByLine(resolve(__dirname, '../.gitignore'))) {
|
||||
if (
|
||||
(
|
||||
for await (const line of readFileByLine(resolve(__dirname, '../.gitignore'))) {
|
||||
if (
|
||||
(
|
||||
// line.startsWith('List/')
|
||||
line.startsWith('Modules/')
|
||||
) && !line.endsWith('/')
|
||||
) {
|
||||
allFileExists = fs.existsSync(join(__dirname, '..', line));
|
||||
filesList.push(line);
|
||||
line.startsWith('Modules/')
|
||||
) && !line.endsWith('/')
|
||||
) {
|
||||
filesList.push(line);
|
||||
|
||||
if (!isCI) {
|
||||
allFileExists = fs.existsSync(join(__dirname, '..', line));
|
||||
if (!allFileExists) {
|
||||
console.log(`File not exists: ${line}`);
|
||||
break;
|
||||
@@ -42,6 +40,10 @@ const downloadPreviousBuild = task(__filename, async () => {
|
||||
}
|
||||
}
|
||||
|
||||
if (isCI) {
|
||||
allFileExists = false;
|
||||
}
|
||||
|
||||
if (allFileExists) {
|
||||
console.log('All files exists, skip download.');
|
||||
return;
|
||||
|
||||
Reference in New Issue
Block a user