mirror of
https://github.com/dustinkirkland/byobu
synced 2025-08-22 06:23:19 -07:00
* usr/bin/byobu:
- these ulimit tests are bash-specific
This commit is contained in:
parent
b2658d4344
commit
0c9d59c547
2 changed files with 5 additions and 4 deletions
3
debian/changelog
vendored
3
debian/changelog
vendored
|
@ -1,6 +1,7 @@
|
|||
byobu (5.35) unreleased; urgency=low
|
||||
|
||||
* UNRELEASED
|
||||
* usr/bin/byobu:
|
||||
- these ulimit tests are bash-specific
|
||||
|
||||
-- Dustin Kirkland <kirkland@ubuntu.com> Tue, 12 Mar 2013 23:14:29 -0500
|
||||
|
||||
|
|
|
@ -64,10 +64,10 @@ if [ "$#" = "1" ]; then
|
|||
case "$1" in
|
||||
-v|--version)
|
||||
echo "$PKG version $VERSION"
|
||||
if [ -n "$BYOBU_ULIMIT" ]; then
|
||||
if $BYOBU_TEST bash >/dev/null 2>&1; then
|
||||
# Check ulimits
|
||||
[ $($BYOBU_ULIMIT -n) -ge 15 ] || echo "WARNING: ulimit -n is too low" 1>&2
|
||||
[ $($BYOBU_ULIMIT -u) -ge 1600 ] || echo "WARNING: ulimit -u is too low" 1>&2
|
||||
[ $(bash -c "ulimit -n") -ge 15 ] || echo "WARNING: ulimit -n is too low" 1>&2
|
||||
[ $(bash -c "ulimit -u") -ge 1600 ] || echo "WARNING: ulimit -u is too low" 1>&2
|
||||
fi
|
||||
exec $BYOBU_BACKEND $BYOBU_ARG_VERSION
|
||||
exit 0
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue