mirror of
https://github.com/LukeSmithxyz/voidrice.git
synced 2026-03-20 01:37:45 +01:00
Efficent scripting for figuring out the direcotory path
This commit is contained in:
parent
58653d88fb
commit
c87d556422
@ -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
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user