From 78f319a3e07d71d5ad1baa0727666d34c7bd0c21 Mon Sep 17 00:00:00 2001 From: Matthew Davis Date: Sat, 20 Aug 2016 21:29:59 +0100 Subject: [PATCH] Add keys to .gitignore --- src/Console/KeysCommand.php | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/Console/KeysCommand.php b/src/Console/KeysCommand.php index 91264a240..0e1324ec1 100644 --- a/src/Console/KeysCommand.php +++ b/src/Console/KeysCommand.php @@ -36,5 +36,8 @@ public function handle() (new Process('openssl rsa -in oauth-private.key -pubout -out oauth-public.key', storage_path()))->run($callback); $this->info('Encryption keys generated successfully.'); + + (new Process('grep -Fq "/storage/oauth-private.key" .gitignore || echo "/storage/oauth-private.key" >> .gitignore', base_path()))->run($callback); + (new Process('grep -Fq "/storage/oauth-public.key" .gitignore || echo "/storage/oauth-public.key" >> .gitignore', base_path()))->run($callback); } }