Add a better way to check if the current target is an specific OS
This commit is contained in:
parent
dcebd553ab
commit
840a410ff2
@ -3,6 +3,10 @@ kickstart.os() {
|
||||
( uname -a | grep -q Darwin ) && echo "Mac"
|
||||
}
|
||||
|
||||
kickstart.os.is() {
|
||||
[[ `kickstart.os` == "$1" ]]
|
||||
}
|
||||
|
||||
kickstart.codename() {
|
||||
lsb_release -sc
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user