Skip to content

Commit 7f40644

Browse files
committed
feat: add -mindepth to find command in check_cb_installed_version
1 parent cb5c638 commit 7f40644

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

InstallControllerBuddy.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -354,7 +354,7 @@ function check_vjoy_configured() {
354354
function check_cb_installed_version {
355355
if [ -d "$cb_dir" ]
356356
then
357-
cb_installed_version=$(find "$cb_app_dir" -iname 'controllerbuddy-*.jar' -maxdepth 2 -print0 2>/dev/null | xargs -0 -I filename basename -s .jar filename | cut -d - -f 2,3)
357+
cb_installed_version=$(find "$cb_app_dir" -iname 'controllerbuddy-*.jar' -mindepth 2 -maxdepth 2 -print0 2>/dev/null | xargs -0 -I filename basename -s .jar filename | cut -d - -f 2,3)
358358
auto_exit=true
359359
fi
360360
}

0 commit comments

Comments
 (0)