Migrate kickstart.os functions to its own file

This commit is contained in:
Bruno Tavares 2014-02-27 10:48:23 -03:00
parent f3aae7bd7b
commit 36a1a1a04e
2 changed files with 9 additions and 9 deletions

View File

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

View File

@ -0,0 +1,9 @@
kickstart.os() {
( uname -a | grep -q Ubuntu ) && echo "Ubuntu"
( uname -a | grep -q Darwin ) && echo "Mac"
}
kickstart.os.is() {
[[ `kickstart.os` == "$1" ]]
}