if [ -d "$f" ]; then ( cd $f; $inst_sh "$dir/$f" * )
else echo "*** Error - inst.sh $f in $dir failed." 1>&2; exit 1; fi
done
if [ -d "$f" ]; then ( cd $f; $inst_sh "$dir/$f" * )
else echo "*** Error - inst.sh $f in $dir failed." 1>&2; exit 1; fi
done