revised usage of apps dir
[feisty_meow.git] / scripts / core / functions.sh
index 494c43c55aa5356932891fb6e77384f222946211..f708fe852778792cdb1b022d345bfb0f936b7b67 100644 (file)
@@ -780,8 +780,8 @@ return 0
   # count the number of sub-directories in a directory and echo the result.
   function count_directories()
   {
-    local appsdir="$1"; shift
-    numdirs="$(find "$appsdir" -mindepth 1 -maxdepth 1 -type d | wc -l)"
+    local subbydir="$1"; shift
+    numdirs="$(find "$subbydir" -mindepth 1 -maxdepth 1 -type d | wc -l)"
     echo $numdirs
   }