diff options
| author | Salman Abedin <salman104alvi@gmail.com> | 2020-06-05 08:27:01 +0600 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2020-06-04 22:27:01 -0400 |
| commit | 7572627e85b52e1da5156b16432fcab64e7b4eb3 (patch) | |
| tree | e9fa37e59cb8b61e566f1e83aed2754b3b650a11 /.local | |
| parent | 32e0623424c5b7de4c83523d87302ce1de12a1c6 (diff) | |
| download | eibhear-7572627e85b52e1da5156b16432fcab64e7b4eb3.tar.gz eibhear-7572627e85b52e1da5156b16432fcab64e7b4eb3.tar.zst eibhear-7572627e85b52e1da5156b16432fcab64e7b4eb3.zip | |
Efficient scripting to get the directory path (#686)
Co-authored-by: Salman Abedin <salmanabedin@zohomail.com>
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 |
