Permalink
Browse files

Rename Keytool config file

  • Loading branch information...
1 parent de4e338 commit 123daf41b8d4cc52df90b78ffb342248f1b9b852 @timoh6 committed Aug 28, 2012
Showing with 8 additions and 1 deletion.
  1. +8 −1 bin/Keytool.php
View
@@ -14,7 +14,14 @@
$settings = new TCrypto\Tools\SettingStore();
$cli = new TCrypto\Tools\Cli\Horde\Cli();
-$optionParser = new TCrypto\Tools\ArrayOptionParser('keytool.config.php');
+if (file_exists('keytool.config.php'))
+{
+ $optionParser = new TCrypto\Tools\ArrayOptionParser('keytool.config.php');
+}
+else
+{
+ $optionParser = new TCrypto\Tools\ArrayOptionParser('keytool.config.dist.php');
+}
$helper = new TCrypto\Tools\Keytool\Filesystem();
$keyParser = new TCrypto\Tools\Keytool\KeyParser();

0 comments on commit 123daf4

Please sign in to comment.