Advertisement
Guest User

Untitled

a guest
Oct 14th, 2019
69
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.28 KB | None | 0 0
  1. #!/bin/bash
  2. RESULT=$(grep -r -i --include \*.cs --include \*.cshtml --exclude Startup.cs --exclude /bin/\* --exclude /obj/\* --exclude /Configuration/\*.cs "Infrastructure.Namespace.Here" FolderNameHere)
  3.  
  4. if [ -z "$RESULT" ]
  5. then
  6. echo $RESULT
  7. exit 1
  8. fi
  9. echo "No issues found."
  10. exit 0
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement