run: fix check of array size

It was always true, which lead to an empty export in ~git/.bash_profile.
Leading us to that annoying `declare -x` lines in the output.