From f19ed28baa1641189cf72577b2320634c08236df Mon Sep 17 00:00:00 2001 From: debuggerx Date: Wed, 17 Mar 2021 14:15:17 +0800 Subject: [PATCH] feat: add replace mode. --- bin/pre_script.dart | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bin/pre_script.dart b/bin/pre_script.dart index bfaabf1..74dfa22 100644 --- a/bin/pre_script.dart +++ b/bin/pre_script.dart @@ -34,7 +34,7 @@ void main(List arguments) { flavor = args.flavor; isReplace = args.isReplaceMode; - if (!FLAVORS.contains(flavor)) + if (!FLAVORS.contains(flavor) && flavor != 'default') throw Exception('Undefined flavor !!!'); _ctx.addEntries(FLAVORS.map((e) => MapEntry(e, e)));