Browse Source

Fixed gpg command line.

master
parent
commit
68853ba9d7
Signed by: yogsototh GPG Key ID: 7B19A4C650D59646
  1. 6
      auto-load-project.el

6
auto-load-project.el

@ -25,7 +25,7 @@ To sign a file you should used
(string-trim-right
(shell-command-to-string
(concat
"gpg --status-fd 1 --verify" file ".sig " file "2>/dev/null"
(format "gpg --status-fd 1 --verify %s.sig %s 2>/dev/null " file file)
"|grep VALIDSIG"
"|awk '{print $3}'"))))
@ -46,9 +46,11 @@ This is run once the project is loaded signifying project setup."
(interactive)
(when (projectile-project-p)
(lexical-let* ((current-project-root (projectile-project-root))
(project-init-file (expand-file-name auto-load-project/project-file current-project-root)))
(project-init-file (expand-file-name auto-load-project/project-file current-project-root))
(project-sign-file (concat project-init-file ".sig")))
(when (and (not (member current-project-root auto-load-project/loaded-projects))
(file-exists-p project-init-file)
(file-exists-p project-sign-file)
(auto-load-project/trusted-gpg-origin-p project-init-file))
(message "Loading project init file for %s" (projectile-project-name))
(condition-case ex

Loading…
Cancel
Save