diff --git a/auto-load-project.el b/auto-load-project.el index 1fe1b3a..5b7dc1e 100644 --- a/auto-load-project.el +++ b/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