Skip to content

Commit

Permalink
refactor(ci): minor refactor of init script
Browse files Browse the repository at this point in the history
  • Loading branch information
abougouffa committed Oct 30, 2023
1 parent 988463d commit ca2bad4
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion .github/workflows/scripts/ci-init.el
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,8 @@

(message "Running MinEmacs in CI mode, loading all packages.")

(let ((root-dir (expand-file-name (concat (file-name-directory (or load-file-name buffer-file-name)) "../../../"))))
(let* ((scripts-dir (file-name-directory (or load-file-name buffer-file-name)))
(root-dir (expand-file-name "../../../" scripts-dir)))
(message "Calculated root directory is \"%s\"" root-dir)
(message "Loading \"early-init.el\"")
(load (expand-file-name "early-init.el" root-dir))
Expand Down

0 comments on commit ca2bad4

Please sign in to comment.