mirror of
https://github.com/vale981/apheleia
synced 2025-03-05 09:31:40 -05:00
Avoid using git to get project root
This commit is contained in:
parent
9804f241ac
commit
b7251e54a0
1 changed files with 4 additions and 1 deletions
|
@ -2,7 +2,10 @@
|
||||||
|
|
||||||
set -euo pipefail
|
set -euo pipefail
|
||||||
|
|
||||||
|
# Avoid using git to get project directory, due to
|
||||||
|
# https://github.com/raxod502/apheleia/pull/89#issuecomment-1107319617
|
||||||
|
|
||||||
cd "$(dirname "$0")"
|
cd "$(dirname "$0")"
|
||||||
repo="$(git rev-parse --show-toplevel)"
|
repo="$(cd ../.. && pwd)"
|
||||||
|
|
||||||
exec emacs --batch -L "${repo}" -L . -l apheleia-ft -f "$1"
|
exec emacs --batch -L "${repo}" -L . -l apheleia-ft -f "$1"
|
||||||
|
|
Loading…
Add table
Reference in a new issue