summaryrefslogtreecommitdiffstats
path: root/.local/bin/compiler
diff options
context:
space:
mode:
Diffstat (limited to '.local/bin/compiler')
-rwxr-xr-x.local/bin/compiler2
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