Created
January 6, 2021 06:15
-
-
Save mdboop/877eff6f74999476edcf0d8c53a6b772 to your computer and use it in GitHub Desktop.
newline check for file
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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