Migrate kickstart.os functions to its own file
This commit is contained in:
parent
f3aae7bd7b
commit
36a1a1a04e
@ -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
|
||||
}
|
||||
|
9
kickstart/recipes/kickstart/os.sh
Normal file
9
kickstart/recipes/kickstart/os.sh
Normal 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" ]]
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user