From 3635cab96be0690366e7b51dec3b26a397c0ada1 Mon Sep 17 00:00:00 2001 From: Bruno Tavares Date: Thu, 27 Feb 2014 10:48:55 -0300 Subject: [PATCH] Migrate kickstart.codename into kickstart.os namespace --- docs/kickstart/{ => os}/codename.md | 0 kickstart/recipes/kickstart.sh | 4 ---- kickstart/recipes/kickstart/os.sh | 4 ++++ 3 files changed, 4 insertions(+), 4 deletions(-) rename docs/kickstart/{ => os}/codename.md (100%) diff --git a/docs/kickstart/codename.md b/docs/kickstart/os/codename.md similarity index 100% rename from docs/kickstart/codename.md rename to docs/kickstart/os/codename.md diff --git a/kickstart/recipes/kickstart.sh b/kickstart/recipes/kickstart.sh index ae692f0..693e9b8 100644 --- a/kickstart/recipes/kickstart.sh +++ b/kickstart/recipes/kickstart.sh @@ -1,7 +1,3 @@ -kickstart.codename() { - lsb_release -sc -} - kickstart.info() { [ "$kickstart_context" ] && echo "$kickstart_context >> $@" >&2 || echo "$@" >&2 } diff --git a/kickstart/recipes/kickstart/os.sh b/kickstart/recipes/kickstart/os.sh index f7baf00..f8b50bf 100644 --- a/kickstart/recipes/kickstart/os.sh +++ b/kickstart/recipes/kickstart/os.sh @@ -7,3 +7,7 @@ kickstart.os.is() { [[ `kickstart.os` == "$1" ]] } +kickstart.os.codename() { + lsb_release -sc +} +