timbeadle/grunt-cfpathcheck

View on GitHub
test-grunt.sh

Summary

Maintainability
Test Coverage
#!/bin/bash

STR=$(grunt);
SUB='test-template.cfm';

if [[ "$STR" =~ .*"$SUB".* ]]; then
    echo "[GRUNT] test passed - '$SUB' found in '$STR'";
else
    echo "[GRUNT] test failed - '$SUB' not found in '$STR'";
    exit 1;
fi