cowboy/dotfiles — comment on commit 1c58bb8790bdf09a3317649362ddb38f9d0f9d6e
File: init/ubuntu.sh line 2
By janmoesen:

You *could* also do `grep -q -m 1 Ubuntu /etc/issue 2> /dev/null || return 1`, which is slightly faster since it does not need to read the whole file if there is a match before the EOF. Of course, for an operation done once, like this one here, this does not matter.