more changes per @darealshinji comments

This commit is contained in:
stevestock
2018-06-01 14:03:05 -04:00
parent 42f171c210
commit 0a7be6fd91

View File

@@ -1283,8 +1283,7 @@ detectpkgs () {
pkgs=$(pkg_info | wc -l | tr -d ' ')
;;
'Cygwin')
cygfix=2
pkgs=$(($(cygcheck -cd | wc -l) - cygfix))
pkgs=$(($(cygcheck -cd | wc -l) - 2))
if [ -d "/cygdrive/c/ProgramData/chocolatey/lib" ]; then
chocopkgs=$(( $(ls -1 /cygdrive/c/ProgramData/chocolatey/lib | wc -l) ))
pkgs=$((pkgs + chocopkgs))