Fixed gpg command line.

This commit is contained in:
Yann Esposito (Yogsototh) 2019-08-20 15:15:16 +02:00
parent edf6ca74f3
commit 68853ba9d7
Signed by untrusted user who does not match committer: yogsototh
GPG key ID: 7B19A4C650D59646

View file

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