1. Jakub Wilk
  2. mbank-cli

Commits

Jakub Wilk  committed 3d32e9b

Don't hardcode gpg path.

  • Participants
  • Parent commits 4532d5b
  • Branches default

Comments (0)

Files changed (1)

File mbank-cli

View file
   EXIT_API_ERROR => 3,
   WEB_CODESET => 'ISO-8859-2',
   FAKE_DOMAIN => 'mbank-cli.invalid',
-  GPG_EXECUTABLE => '/usr/bin/gpg'
 };
 
 chdir dirname($0) or die "Can't change working directory: $!";
   my $fp, my $gpg;
   if ($need_decrypt)
   {
-    open $gpg, '-|', GPG_EXECUTABLE, '--decrypt' or die "Can't invoke gpg: $!";
+    open $gpg, '-|', 'gpg', '--decrypt' or die "Can't invoke gpg: $!";
     $fp = $gpg;
   }
   else