You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@buildstream.apache.org by no...@apache.org on 2020/12/29 12:55:56 UTC
[buildstream] 12/12: WIP: bst-here fixes
This is an automated email from the ASF dual-hosted git repository.
not-in-ldap pushed a commit to branch richardmaw/wip/log-show
in repository https://gitbox.apache.org/repos/asf/buildstream.git
commit 932844345d5b0b7c4123e3f50a6ab0b9ce14a571
Author: Richard Maw <ri...@codethink.co.uk>
AuthorDate: Wed Jul 25 16:45:29 2018 +0100
WIP: bst-here fixes
---
contrib/bst-here | 8 ++++----
1 file changed, 4 insertions(+), 4 deletions(-)
diff --git a/contrib/bst-here b/contrib/bst-here
index 037788e..c6f17a2 100755
--- a/contrib/bst-here
+++ b/contrib/bst-here
@@ -94,12 +94,12 @@ done
BST_HERE_PS1="\[\033[01;34m\]\w\[\033[00m\]> "
if [ "$#" -eq 0 ]; then
- command="/bin/bash -i"
+ set -- /bin/bash -i
else
- command="/usr/local/bin/bst $@"
+ set -- /bin/sh -c 'exec bst "$@"' - "$@"
fi
-if "$update" == true
+if [ "$update" = true ]
then
docker pull "$bst_here_image"
fi
@@ -123,4 +123,4 @@ exec docker run --rm -i${is_tty:+ -t} \
$extra_volumes_opt \
--workdir /src \
"$bst_here_image" \
- $command
+ "$@"