diff options
author | Boris Kolpackov <boris@codesynthesis.com> | 2018-03-31 16:39:16 +0200 |
---|---|---|
committer | Boris Kolpackov <boris@codesynthesis.com> | 2018-03-31 16:39:16 +0200 |
commit | eef2aff3138b11dc0a451d4f8f8912bede3afae8 (patch) | |
tree | dbae8aaff31f3f6a5edb0d3ac7459deb2df3c48d | |
parent | 51da7a6387991f7e819d7e4c9b07dcf598f8bd46 (diff) |
Adjust to new bpkg-pkg-status output
-rwxr-xr-x | buildos | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -681,7 +681,7 @@ function bbot_check () # <toolchain-name> # 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 () # <toolchain-name> <toolchain-index> 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. # |