aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBoris Kolpackov <boris@codesynthesis.com>2018-03-31 16:39:16 +0200
committerBoris Kolpackov <boris@codesynthesis.com>2018-03-31 16:39:16 +0200
commiteef2aff3138b11dc0a451d4f8f8912bede3afae8 (patch)
treedbae8aaff31f3f6a5edb0d3ac7459deb2df3c48d
parent51da7a6387991f7e819d7e4c9b07dcf598f8bd46 (diff)
Adjust to new bpkg-pkg-status output
-rwxr-xr-xbuildos4
1 files 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 () # <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.
#