Use test to check for condition with find and execdir option
- by slosd
I think I can keep my question short. Why does the following command produce no output?
find /usr/share/themes -mindepth 1 -maxdepth 1 -type d -execdir test -d {}/gnome-shell \;
I expected it to print all folders in /usr/share/themes that contain a folder gnome-shell.
Several websites suggest that this usage of test as a command in exec/execdir is possible.
From man find:
-exec command ;
Execute command; true if 0 status is returned. [...]