Return appropriate exit code from installCodeSnippetsAndTemplates

This script always returns 0, causing install.sh to ignore errors.