Skip to content

Commit 6c24c41

Browse files
committed
chore: exit on .millennium not found
1 parent 3e93225 commit 6c24c41

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

scripts/build/prepare-dist.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ log_message() {
3131

3232
mkdir -p dist
3333

34-
cp -r ".millennium" dist/.millennium 2>/dev/null || log_message "error" ".millennium directory not found, it is required to run the plugin."
34+
cp -r ".millennium" dist/.millennium 2>/dev/null || { log_message "error" ".millennium directory not found, it is required to run the plugin."; exit 1; }
3535
cp "plugin.json" dist/plugin.json 2>/dev/null || { log_message "error" "plugin.json was not found. It is required for plugins to have."; exit 1; }
3636
cp "requirements.txt" dist/requirements.txt 2>/dev/null || log_message "warning" "requirements.txt not found, skipping."
3737
cp "PLUGIN.md" dist/README.md 2>/dev/null || cp "README.md" dist/README.md 2>/dev/null || cp "README" dist/README 2>/dev/null || log_message "warning" "README.md or PLUGIN.md not found, skipping."

0 commit comments

Comments
 (0)