X-Git-Url: https://feistymeow.org/gitweb/?a=blobdiff_plain;f=scripts%2Fcore%2Ffunctions.sh;h=f708fe852778792cdb1b022d345bfb0f936b7b67;hb=a1a786edd84c7fe37284dad35834f3c011ac0576;hp=494c43c55aa5356932891fb6e77384f222946211;hpb=e66f47c936e8b86047a2dffb356a67b74b9629db;p=feisty_meow.git diff --git a/scripts/core/functions.sh b/scripts/core/functions.sh index 494c43c5..f708fe85 100644 --- a/scripts/core/functions.sh +++ b/scripts/core/functions.sh @@ -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 }