[Groonga-commit] groonga/gcs [master] Fix handling of missing "source" option

Back to archive index

null+****@clear***** null+****@clear*****
2012年 8月 9日 (木) 17:28:15 JST


SHIMODA Hiroshi	2012-08-09 17:28:15 +0900 (Thu, 09 Aug 2012)

  New Revision: 14092b05efc1f3a8c62a6cbbc331a09ad36cb5e5
  https://github.com/groonga/gcs/commit/14092b05efc1f3a8c62a6cbbc331a09ad36cb5e5

  Log:
    Fix handling of missing "source" option

  Modified files:
    bin/gcs-post-sdf

  Modified: bin/gcs-post-sdf (+3 -3)
===================================================================
--- bin/gcs-post-sdf    2012-08-09 17:27:15 +0900 (70bfbc3)
+++ bin/gcs-post-sdf    2012-08-09 17:28:15 +0900 (a8ef050)
@@ -18,13 +18,13 @@ commandLine
 commandLine.assertHaveDomainName();
 commandLine.assertDomainExists();
 
-var sourceFile = CLI.resolve(commandLine.options.source);
-if (!sourceFile) {
+if (!commandLine.options.source) {
   console.log('You must specify the source SDF.');
   return process.exit(1);
 }
 
-console.log('Processing: %1', sourceFile);
+var sourceFile = CLI.resolve(commandLine.options.source);
+console.log('Processing: %s', sourceFile);
 
 var format = sourceFile.match(/\.(xml|json)$/i);
 if (!format) {
-------------- next part --------------
HTML$B$NE:IU%U%!%$%k$rJ]4I$7$^$7$?(B...
다운로드 



Groonga-commit メーリングリストの案内
Back to archive index