4 ms·
Can someone enlighten me on the cd "$(dirname "$0")" part of this? This is changing to the directory of where the script is all cases? EDIT: I should've ju
by xwowsersx 4y ago
Can someone enlighten me on the
cd "$(dirname "$0")"
part of this? This is changing to the directory of where the script is all cases?
EDIT: I should've just tested this to see :) I did and it does exactly that. Very helpful. I didn't realize $0 is always the first argument. Kind of like how `self` is the first implicit argument in OOP methods?