How come you aren't guarding this with:
[ $AS_BUILD = 1 ] && build_as "$@"