Skip to content

Instantly share code, notes, and snippets.

@mdboop
Created January 6, 2021 06:15
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save mdboop/877eff6f74999476edcf0d8c53a6b772 to your computer and use it in GitHub Desktop.
Save mdboop/877eff6f74999476edcf0d8c53a6b772 to your computer and use it in GitHub Desktop.
newline check for file
if [[ -s redirects && -z "$(tail -c 1 redirects)" ]]; then exit 1; else echo "redirects file newline check OK."; fi;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment