mirror of
https://github.com/LukeSmithxyz/voidrice.git
synced 2026-01-30 09:48:11 +01:00
Efficient scripting to get the directory path (#686)
Co-authored-by: Salman Abedin <salmanabedin@zohomail.com>
This commit is contained in:
parent
32e0623424
commit
7572627e85
@ -10,7 +10,7 @@
|
|||||||
# string "xelatex" somewhere in a comment/command in the first 5 lines.
|
# string "xelatex" somewhere in a comment/command in the first 5 lines.
|
||||||
|
|
||||||
file=$(readlink -f "$1")
|
file=$(readlink -f "$1")
|
||||||
dir=$(dirname "$file")
|
dir=${file%/*}
|
||||||
base="${file%.*}"
|
base="${file%.*}"
|
||||||
|
|
||||||
cd "$dir" || exit
|
cd "$dir" || exit
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user