Skip to content

Commit

Permalink
Clarified a comment
Browse files Browse the repository at this point in the history
Allowed values are A-F, a-f and 0-9. Not a-z or A-Z
  • Loading branch information
fazlearefin authored Jan 18, 2017
1 parent 753f1e2 commit ac6fde5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion hostid.sh
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@

if [[ -n "$1" ]]; then
host_id=$1
# chars must be 0-9, a-z, A-Z and exactly 8 chars
# chars must be 0-9, a-f, A-F and exactly 8 chars
egrep -o '^[a-fA-F0-9]{8}$' <<< $host_id || exit 1
else
host_id=$(hostid)
Expand Down

0 comments on commit ac6fde5

Please sign in to comment.