diff mbox series

[canonical-livepatch-tools] livepatch-tool: Create empty file ~/.livepatch-cvenotes

Message ID 20171013095453.11729-1-juerg.haefliger@canonical.com
State New
Headers show
Series [canonical-livepatch-tools] livepatch-tool: Create empty file ~/.livepatch-cvenotes | expand

Commit Message

Juerg Haefliger Oct. 13, 2017, 9:54 a.m. UTC
This file needs to be present for certain commands so create it if it's
not present.

Signed-off-by: Juerg Haefliger <juerg.haefliger@canonical.com>
---
 livepatch-tool | 2 ++
 1 file changed, 2 insertions(+)
diff mbox series

Patch

diff --git a/livepatch-tool b/livepatch-tool
index b715e239c862..45974d1be652 100755
--- a/livepatch-tool
+++ b/livepatch-tool
@@ -915,6 +915,8 @@  if [ -z "$command" ]; then
 fi
 shift
 
+[ -e ~/.livepatch-cvenotes ] || touch ~/.livepatch-cvenotes
+
 case "$command" in
   am)
     echo "Applying mbox to ${git_branch:-all}"