pedantic.software repositories

restrict find to maxdepth 1

Authored:Sylvain Gauthier06/01/2021 10:18:48 +1100
Committed:Sylvain Gauthier06/01/2021 10:18:48 +1100

Diff with parent commit

File changed 100755 /benk old new
@@ -127,7 +127,7 @@
 }
 
 benk_select_boxes() {
-    BOXES="$(find . -type d | grep -o "[0-9]*")"
+    BOXES="$(find . -maxdepth 1 -type d | grep -o "[0-9]*")"
     test -n "$BOXES" || return 1
 }