From eef2aff3138b11dc0a451d4f8f8912bede3afae8 Mon Sep 17 00:00:00 2001 From: Boris Kolpackov Date: Sat, 31 Mar 2018 16:39:16 +0200 Subject: Adjust to new bpkg-pkg-status output --- buildos | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/buildos b/buildos index e16d853..fb5f85c 100755 --- a/buildos +++ b/buildos @@ -681,7 +681,7 @@ function bbot_check () # # See if this is the first time or if we need to upgrade. # - if [ "$(cut -d ' ' -f 1 <<<"$b_stat")" = "configured" ]; then + if [ "$(cut -d ' ' -f 2 <<<"$b_stat")" = "configured" ]; then # We assume that if anything has changed in the status line, then we # have a new version. @@ -732,7 +732,7 @@ function bbot_start () # local i n b_word while true; do # The "breakout loop". - b_word="$(bpkg status bbot | cut -d ' ' -f 1)" + b_word="$(bpkg status bbot | cut -d ' ' -f 2)" # If upgrading, stop the service and uninstall. # -- cgit v1.1