When I run
find -maxdepth 1 -type d -name 'iptp*' -execdir bash -c "ls {}" \;
I get a listing of all dirs named iptp*
When I run
find -maxdepth 1 -type d -name 'iptp*' -execdir bash -c "git status {}" \;
I get
fatal: Not a git repository (or any parent up to mount parent )
Stopping at filesystem boundary (GIT_DISCOVERY_ACROSS_FILESYSTEM not set).
I seems like git status
is run in the parent dir where find was started.
What do I make wrong?
{}
in the shell code. – Kamil Maciorowski Mar 21 '21 at 16:07