From 8e8cb05674c490632661059d7af546f92897b308 Mon Sep 17 00:00:00 2001 From: Christopher Vagnetoft Date: Sun, 11 Dec 2016 16:19:18 +0100 Subject: [PATCH] hotfix: Organized examples --- examples/nullpatch-raspbian.fix | 14 ++++++++++++++ examples/nullpatch-ubuntu.fix | 14 ++++++++++++++ {share => examples}/nullpatch.fix | 0 3 files changed, 28 insertions(+) create mode 100644 examples/nullpatch-raspbian.fix create mode 100644 examples/nullpatch-ubuntu.fix rename {share => examples}/nullpatch.fix (100%) diff --git a/examples/nullpatch-raspbian.fix b/examples/nullpatch-raspbian.fix new file mode 100644 index 0000000..353e696 --- /dev/null +++ b/examples/nullpatch-raspbian.fix @@ -0,0 +1,14 @@ +hotfix: This hotfix does nothing. +info: > + It is true, this hotfix really doesn't do anything. + It is just included as an example. This particular + example will only work on Raspbian (Raspberry Pi), + see the source for details! +author: Noccy +lang: bash +for: + - lsb.id=='raspbian' +--- + +info "Hello World" +exec "ls -al" diff --git a/examples/nullpatch-ubuntu.fix b/examples/nullpatch-ubuntu.fix new file mode 100644 index 0000000..46d9078 --- /dev/null +++ b/examples/nullpatch-ubuntu.fix @@ -0,0 +1,14 @@ +hotfix: This hotfix does nothing. +info: > + It is true, this hotfix really doesn't do anything. + It is just included as an example. This particular + example will only work on Ubuntu 16.04 or later, + see the source for details! +author: Noccy +lang: bash +for: + - lsb.id=='ubuntu' and lsb.release>='16.04' +--- + +info "Hello World" +exec "ls -al" diff --git a/share/nullpatch.fix b/examples/nullpatch.fix similarity index 100% rename from share/nullpatch.fix rename to examples/nullpatch.fix