mirror of
https://github.com/dustinkirkland/byobu
synced 2025-08-22 14:24:39 -07:00
* usr/lib/byobu/include/constants:
- make sure we export this variable, so that we only need to do the expensive test once
This commit is contained in:
parent
0d06fc46f4
commit
0d046f92a1
2 changed files with 6 additions and 4 deletions
4
debian/changelog
vendored
4
debian/changelog
vendored
|
@ -1,6 +1,8 @@
|
|||
byobu (5.72) unreleased; urgency=low
|
||||
|
||||
* UNRELEASED
|
||||
* usr/lib/byobu/include/constants:
|
||||
- make sure we export this variable, so that we only need to
|
||||
do the expensive test once
|
||||
|
||||
-- Dustin Kirkland <kirkland@ubuntu.com> Mon, 10 Feb 2014 15:38:26 -0600
|
||||
|
||||
|
|
|
@ -56,11 +56,11 @@ $BYOBU_TEST ulimit >/dev/null 2>&1 && export BYOBU_ULIMIT="ulimit" || export BYO
|
|||
# Find a suitable python interpreter, if undefined
|
||||
if [ -z "$BYOBU_PYTHON" ]; then
|
||||
if python3 -c "import snack" >/dev/null 2>&1; then
|
||||
BYOBU_PYTHON="python3"
|
||||
export BYOBU_PYTHON="python3"
|
||||
elif python2 -c "import snack" >/dev/null 2>&1; then
|
||||
BYOBU_PYTHON="python2"
|
||||
export BYOBU_PYTHON="python2"
|
||||
elif python -c "import snack" >/dev/null 2>&1; then
|
||||
BYOBU_PYTHON="python"
|
||||
export BYOBU_PYTHON="python"
|
||||
fi
|
||||
fi
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue