Created
January 13, 2015 17:08
-
-
Save JFFail/5ee6a4e81625d29bc571 to your computer and use it in GitHub Desktop.
This file contains hidden or 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
#!/bin/bash | |
letters=`echo $HOSTNAME | wc -m | tr -d ' '` | |
if [[ $letters -gt 15 ]]; then | |
echo "Your name is too long at $letters." | |
else | |
echo "Domain join can continue." | |
fi |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment