diff options
Diffstat (limited to '.local')
| -rwxr-xr-x | .local/bin/compiler | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/.local/bin/compiler b/.local/bin/compiler index 7b61395..f28ffe1 100755 --- a/.local/bin/compiler +++ b/.local/bin/compiler @@ -10,7 +10,7 @@ # string "xelatex" somewhere in a comment/command in the first 5 lines. file=$(readlink -f "$1") -dir=$(dirname "$file") +dir=${file%/*} base="${file%.*}" cd "$dir" || exit |
