Add a better way to check if the current target is an specific OS

This commit is contained in:
Bruno Tavares 2014-02-21 15:11:24 -03:00
parent dcebd553ab
commit 840a410ff2

View File

@ -3,6 +3,10 @@ kickstart.os() {
( uname -a | grep -q Darwin ) && echo "Mac"
}
kickstart.os.is() {
[[ `kickstart.os` == "$1" ]]
}
kickstart.codename() {
lsb_release -sc
}